diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-14 19:47:29 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-02-14 19:47:29 -0200 |
commit | b0a5e156b8e6913c6eb8ed65ab28576b8b88f461 (patch) | |
tree | 11b32d6436e2c663171127990509d091c1ea847d /lbaselib.c | |
parent | ac178ee4788c13761ec0850b31ff17673a33f227 (diff) | |
download | lua-b0a5e156b8e6913c6eb8ed65ab28576b8b88f461.tar.gz lua-b0a5e156b8e6913c6eb8ed65ab28576b8b88f461.tar.bz2 lua-b0a5e156b8e6913c6eb8ed65ab28576b8b88f461.zip |
no more maximum stack size
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++) { |