From 7e0be98e8cb407b79ade0d2b544d7740ccf0e210 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Thu, 28 Nov 2002 18:22:12 +0000 Subject: [PATCH] VSC doesn't all the casts Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@544 --- src/hardware/timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hardware/timer.cpp b/src/hardware/timer.cpp index 56d31ea3..24083f56 100644 --- a/src/hardware/timer.cpp +++ b/src/hardware/timer.cpp @@ -56,7 +56,7 @@ static void counter_latch(Bitu counter) { /* Fill the read_latch of the selected counter with current count */ PIT_Block * p=&pit[counter]; - Bit64u micro=PIC_MicroCount(); + Bit64s micro=PIC_MicroCount(); micro-=p->start; micro%=p->micro; Bit16u ticks=(Bit16u)(((float)micro/(float)p->micro)*(float)p->cntr);