qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] typo in qemu_next_deadline()


From: Dan Kenigsberg
Subject: [Qemu-devel] typo in qemu_next_deadline()
Date: Mon, 1 Oct 2007 17:12:20 +0200
User-agent: Mutt/1.5.14 (2007-02-12)

(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])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]