diff options
Diffstat (limited to 'src/timeout.c')
-rw-r--r-- | src/timeout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timeout.c b/src/timeout.c index dfece82..50a84da 100644 --- a/src/timeout.c +++ b/src/timeout.c | |||
@@ -151,9 +151,9 @@ int tm_lua_sleep(lua_State *L) | |||
151 | { | 151 | { |
152 | double n = luaL_checknumber(L, 1); | 152 | double n = luaL_checknumber(L, 1); |
153 | #ifdef WIN32 | 153 | #ifdef WIN32 |
154 | Sleep(n*1000); | 154 | Sleep((int)n*1000); |
155 | #else | 155 | #else |
156 | sleep(n); | 156 | sleep((int)n); |
157 | #endif | 157 | #endif |
158 | return 0; | 158 | return 0; |
159 | } | 159 | } |