]> git.tdb.fi Git - libs/core.git/commitdiff
Win32 type warning fixed
authorNiko Liikanen <cloud@neo-midgar.com>
Thu, 7 Sep 2006 12:53:02 +0000 (12:53 +0000)
committerNiko Liikanen <cloud@neo-midgar.com>
Thu, 7 Sep 2006 12:53:02 +0000 (12:53 +0000)
source/time/utils.cpp:78: warning: passing `double' for converting 1 of `void Sleep(DWORD)'

source/time/utils.cpp

index 49acd7791180616be36d56f29f0af99a30a55e42..e8c048084f1861732880b17c5f38cf22cbc567e7 100644 (file)
@@ -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
 }