diff options
Diffstat (limited to 'Sluift/sluift.cpp')
-rw-r--r-- | Sluift/sluift.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Sluift/sluift.cpp b/Sluift/sluift.cpp index 51ba48d..0a653bb 100644 --- a/Sluift/sluift.cpp +++ b/Sluift/sluift.cpp @@ -758,7 +758,7 @@ static int sluift_sleep(lua_State *L) { int timeout = boost::numeric_cast<int>(luaL_checknumber(L, 1)); Watchdog watchdog(timeout, networkFactories.getTimerFactory()); while (!watchdog.getTimedOut()) { - Swift::sleep(std::min(100, timeout)); + Swift::sleep(boost::numeric_cast<unsigned int>(std::min(100, timeout))); eventLoop.runOnce(); } return 0; |