(int64_t)UINT64_MAX is -1 and should not be assigned to nearest_delta_us Index: vl.c =================================================================== RCS file: /sources/qemu/qemu/vl.c,v retrieving revision 1.343 diff -u -p -r1.343 vl.c --- vl.c 29 Sep 2007 19:24:40 -0000 1.343 +++ vl.c 1 Oct 2007 14:55:05 -0000 @@ -1181,7 +1179,7 @@ static void host_alarm_handler(int host_ 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])