aboutsummaryrefslogtreecommitdiff
path: root/ltests.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 /ltests.c
parentac178ee4788c13761ec0850b31ff17673a33f227 (diff)
downloadlua-b0a5e156b8e6913c6eb8ed65ab28576b8b88f461.tar.gz
lua-b0a5e156b8e6913c6eb8ed65ab28576b8b88f461.tar.bz2
lua-b0a5e156b8e6913c6eb8ed65ab28576b8b88f461.zip
no more maximum stack size
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ltests.c b/ltests.c
index 0785fa7b..4c040392 100644
--- a/ltests.c
+++ b/ltests.c
@@ -378,9 +378,9 @@ static int udataval (lua_State *L) {
378 378
379 379
380static int doonnewstack (lua_State *L) { 380static int doonnewstack (lua_State *L) {
381 lua_State *L1 = lua_newthread(L, luaL_check_int(L, 1)); 381 lua_State *L1 = lua_newthread(L);
382 lua_dostring(L1, luaL_check_string(L, 2)); 382 int status = lua_dostring(L1, luaL_check_string(L, 1));
383 lua_pushnumber(L, 1); 383 lua_pushnumber(L, status);
384 lua_closethread(L, L1); 384 lua_closethread(L, L1);
385 return 1; 385 return 1;
386} 386}
@@ -399,7 +399,7 @@ static int d2s (lua_State *L) {
399 399
400 400
401static int newstate (lua_State *L) { 401static int newstate (lua_State *L) {
402 lua_State *L1 = lua_open(luaL_check_int(L, 1)); 402 lua_State *L1 = lua_open();
403 if (L1) { 403 if (L1) {
404 *cast(int **, L1) = &islocked; /* initialize the lock */ 404 *cast(int **, L1) = &islocked; /* initialize the lock */
405 lua_pushnumber(L, (unsigned long)L1); 405 lua_pushnumber(L, (unsigned long)L1);