summaryrefslogtreecommitdiff
path: root/lbaselib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-02-14 19:47:29 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-02-14 19:47:29 -0200
commitb0a5e156b8e6913c6eb8ed65ab28576b8b88f461 (patch)
tree11b32d6436e2c663171127990509d091c1ea847d /lbaselib.c
parentac178ee4788c13761ec0850b31ff17673a33f227 (diff)
downloadlua-b0a5e156b8e6913c6eb8ed65ab28576b8b88f461.tar.gz
lua-b0a5e156b8e6913c6eb8ed65ab28576b8b88f461.tar.bz2
lua-b0a5e156b8e6913c6eb8ed65ab28576b8b88f461.zip
no more maximum stack size
Diffstat (limited to 'lbaselib.c')
-rw-r--r--lbaselib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lbaselib.c b/lbaselib.c
index b561a52c..363acdd9 100644
--- a/lbaselib.c
+++ b/lbaselib.c
@@ -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++) {