NSThread bugfix in sleeping

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3591 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-01-26 09:00:20 +00:00
parent 299fac65f5
commit 1567ea4084
3 changed files with 8 additions and 3 deletions

View file

@ -196,9 +196,9 @@ void gnustep_base_thread_callback()
while (delay > 0)
{
#ifdef HAVE_USLEEP
usleep (delay*1000000);
usleep ((int)(delay*1000000));
#else
sleep (delay);
sleep ((int)delay);
#endif
delay = [date timeIntervalSinceNow];
}