From: Niko Liikanen Date: Thu, 7 Sep 2006 12:53:02 +0000 (+0000) Subject: Win32 type warning fixed X-Git-Tag: 1.0~33 X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=96b1df89bd5f1721def1fdadb1c3ab16becf2ecd;p=libs%2Fcore.git Win32 type warning fixed source/time/utils.cpp:78: warning: passing `double' for converting 1 of `void Sleep(DWORD)' --- diff --git a/source/time/utils.cpp b/source/time/utils.cpp index 49acd77..e8c0480 100644 --- a/source/time/utils.cpp +++ b/source/time/utils.cpp @@ -75,7 +75,7 @@ int sleep(const TimeDelta &d) d.fill_timespec(ts); return nanosleep(&ts, 0); #else - Sleep(d/msec); + Sleep((DWORD)(d/msec)); return 0; #endif }