From cc63db17a4588a5a8611fb049e0f79fd79db304c Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Wed, 12 Dec 2007 09:46:42 +0000 Subject: [PATCH] 2007-12-12 10:46 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/idle.c ! fixed casting in hb_idleSleep() which truncated the fraction part of given timeout --- harbour/ChangeLog | 5 +++++ harbour/source/rtl/idle.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index b1118543cb..21aff73fb1 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,11 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2007-12-12 10:46 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/rtl/idle.c + ! fixed casting in hb_idleSleep() which truncated the fraction part + of given timeout + 2007-12-11 23:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * source/compiler/hbusage.c * Year bumped to 2008. diff --git a/harbour/source/rtl/idle.c b/harbour/source/rtl/idle.c index 27fd5c6de0..bba1ec84ca 100644 --- a/harbour/source/rtl/idle.c +++ b/harbour/source/rtl/idle.c @@ -216,7 +216,7 @@ void hb_idleSleep( double dSeconds ) { if( dSeconds >= 0 ) { - HB_ULONG end_timer = hb_dateMilliSeconds() + ( HB_ULONG ) dSeconds * 1000; + HB_ULONG end_timer = hb_dateMilliSeconds() + ( HB_ULONG ) ( dSeconds * 1000 ); while( hb_dateMilliSeconds() < end_timer ) hb_idleState();