1
0
Fork 0

VSC doesn't all the casts

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@544
This commit is contained in:
Peter Veenstra 2002-11-28 18:22:12 +00:00
parent f768cce587
commit 7e0be98e8c

View file

@ -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);