Commit 49a9b72568cddc0586468e888cd6ac6d9c97ed35

Authored by balrog
1 parent 2b76bdc9

(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
Showing 1 changed file with 1 additions and 1 deletions
@@ -1181,7 +1181,7 @@ static void host_alarm_handler(int host_signum) @@ -1181,7 +1181,7 @@ static void host_alarm_handler(int host_signum)
1181 1181
1182 static uint64_t qemu_next_deadline(void) 1182 static uint64_t qemu_next_deadline(void)
1183 { 1183 {
1184 - int64_t nearest_delta_us = UINT64_MAX; 1184 + int64_t nearest_delta_us = INT64_MAX;
1185 int64_t vmdelta_us; 1185 int64_t vmdelta_us;
1186 1186
1187 if (active_timers[QEMU_TIMER_REALTIME]) 1187 if (active_timers[QEMU_TIMER_REALTIME])