From b0a5e156b8e6913c6eb8ed65ab28576b8b88f461 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 14 Feb 2002 19:47:29 -0200 Subject: no more maximum stack size --- lbaselib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lbaselib.c') 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) { int n = lua_gettop(L); luaL_arg_check(L, lua_isfunction(L, 1) && !lua_iscfunction(L, 1), 1, "Lua function expected"); - NL = lua_newthread(L, 0); + NL = lua_newthread(L); if (NL == NULL) lua_error(L, "unable to create new thread"); /* move function and arguments from L to NL */ for (i=0; i