diff options
Diffstat (limited to 'src/timeout.c')
-rw-r--r-- | src/timeout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeout.c b/src/timeout.c index 940ddca..dfece82 100644 --- a/src/timeout.c +++ b/src/timeout.c | |||
@@ -149,7 +149,7 @@ static int tm_lua_time(lua_State *L) | |||
149 | \*-------------------------------------------------------------------------*/ | 149 | \*-------------------------------------------------------------------------*/ |
150 | int tm_lua_sleep(lua_State *L) | 150 | int tm_lua_sleep(lua_State *L) |
151 | { | 151 | { |
152 | double n = luaL_check_number(L, 1); | 152 | double n = luaL_checknumber(L, 1); |
153 | #ifdef WIN32 | 153 | #ifdef WIN32 |
154 | Sleep(n*1000); | 154 | Sleep(n*1000); |
155 | #else | 155 | #else |