From c96ae6360ef2ed110e671cb9b5f6f76661af0814 Mon Sep 17 00:00:00 2001 From: Gregory Alexander Date: Fri, 21 Feb 2003 17:37:55 +0000 Subject: [PATCH] Stupid overzealous copy-and-paste. --- bochs/iodev/virt_timer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bochs/iodev/virt_timer.cc b/bochs/iodev/virt_timer.cc index 58b0b3511..34f1f46cf 100644 --- a/bochs/iodev/virt_timer.cc +++ b/bochs/iodev/virt_timer.cc @@ -112,7 +112,7 @@ bx_virt_timer_c::periodic(Bit64u time_passed) { //Starting timer handler calls. in_timer_handler = 1; //Otherwise, cause any events to occur that should. - int i; + unsigned i; for(i=0;i= 0); BX_ASSERT(timerID < BX_MAX_VIRTUAL_TIMERS); - if (timer[i].active) { - BX_PANIC(("unregisterTimer: timer '%s' is still active!", timer[i].id)); + if (timer[timerID].active) { + BX_PANIC(("unregisterTimer: timer '%s' is still active!", timer[timerID].id)); return(0); // Fail. }