From 432c61d1fa3d3cfaac023f3db3c1fffec4f56522 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 3 Jun 2007 13:55:16 +0000 Subject: [PATCH] Add patch 1713574: "timer precision fix" by wjp. Fixes vret problems under 64 bit hosts. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2868 --- include/pic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pic.h b/include/pic.h index 4d37dedb..420a1fe5 100644 --- a/include/pic.h +++ b/include/pic.h @@ -49,7 +49,7 @@ INLINE Bits PIC_MakeCycles(double amount) { } INLINE double PIC_FullIndex(void) { - return PIC_Ticks+PIC_TickIndex(); + return PIC_Ticks+(double)PIC_TickIndex(); } void PIC_ActivateIRQ(Bitu irq);