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
This commit is contained in:
Przemyslaw Czerpak
2007-12-12 09:46:42 +00:00
parent b0fcd569fe
commit cc63db17a4
2 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,11 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
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.

View File

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