Skip to contentSkip to conversation

typo in qemu_next_deadline()

Qemu-devel Dan Kenigsberg 1 participant 1 message Oct 1, 2007

lore
Share & tools
lore
#0 lore raw

(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

vl.c +1 -1
diff -u -p -r1.343 vl.c
@@ -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])