aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-04 19:47:09 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2007-10-04 19:47:09 +0000
commit49a9b72568cddc0586468e888cd6ac6d9c97ed35 (patch)
tree00c212c49501ae787729fdf2039298380a49ad58 /vl.c
parent2b76bdc965ba7b4f27133cb345101d9535ddaa79 (diff)
downloadqemu-49a9b72568cddc0586468e888cd6ac6d9c97ed35.zip
qemu-49a9b72568cddc0586468e888cd6ac6d9c97ed35.tar.gz
qemu-49a9b72568cddc0586468e888cd6ac6d9c97ed35.tar.bz2
(int64_t)UINT64_MAX is -1 and should not be assigned to nearest_delta_us, patch by Dan Kenigsberg.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3325 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 46ce900..c34f959 100644
--- a/vl.c
+++ b/vl.c
@@ -1181,7 +1181,7 @@ static void host_alarm_handler(int host_signum)
static uint64_t qemu_next_deadline(void)
{
- int64_t nearest_delta_us = UINT64_MAX;
+ int64_t nearest_delta_us = INT64_MAX;
int64_t vmdelta_us;
if (active_timers[QEMU_TIMER_REALTIME])