diff options
author | Jeremy White <jwhite@codeweavers.com> | 2012-04-26 12:09:50 -0500 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-04-27 11:29:31 +0300 |
commit | 8d3ebe31ddb4004a4aa794bc1da444573a9914f8 (patch) | |
tree | 5d27fecfe684fefffe0abaf82dc402d9715f01e1 | |
parent | 91210c671fd3837a42a6358ecd21cb1e153c9855 (diff) | |
download | spice-8d3ebe31ddb4004a4aa794bc1da444573a9914f8.tar.gz spice-8d3ebe31ddb4004a4aa794bc1da444573a9914f8.tar.xz spice-8d3ebe31ddb4004a4aa794bc1da444573a9914f8.zip |
Force 64 bit multiplication on 32 bit systems; fixes a bug where the server times out the display channel freakily fast.
-rw-r--r-- | server/red_worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_worker.c b/server/red_worker.c index 297b1687..e341c00c 100644 --- a/server/red_worker.c +++ b/server/red_worker.c @@ -4636,7 +4636,7 @@ static inline uint64_t red_now(void) clock_gettime(CLOCK_MONOTONIC, &time); - return time.tv_sec * 1000000000 + time.tv_nsec; + return ((uint64_t) time.tv_sec) * 1000000000 + time.tv_nsec; } static int red_process_cursor(RedWorker *worker, uint32_t max_pipe_size, int *ring_is_empty) |