diff options
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -434,7 +434,7 @@ static int luaB_coroutine (lua_State *L) { | |||
434 | int n = lua_gettop(L); | 434 | int n = lua_gettop(L); |
435 | luaL_arg_check(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), 1, | 435 | luaL_arg_check(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), 1, |
436 | "Lua function expected"); | 436 | "Lua function expected"); |
437 | NL = lua_newthread(L, 0); | 437 | NL = lua_newthread(L); |
438 | if (NL == NULL) lua_error(L, "unable to create new thread"); | 438 | if (NL == NULL) lua_error(L, "unable to create new thread"); |
439 | /* move function and arguments from L to NL */ | 439 | /* move function and arguments from L to NL */ |
440 | for (i=0; i<n; i++) { | 440 | for (i=0; i<n; i++) { |