aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-06-26 15:28:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-06-26 15:28:24 -0300
commit08a9c9faa39c27bd7a9fe6080481f21d455e7cd3 (patch)
tree55e76832982fd1832a2ac537a921772776ac32f5
parent84fe52dbeb0f75d31e5c87e801d4bd98ec26ce60 (diff)
downloadlua-08a9c9faa39c27bd7a9fe6080481f21d455e7cd3.tar.gz
lua-08a9c9faa39c27bd7a9fe6080481f21d455e7cd3.tar.bz2
lua-08a9c9faa39c27bd7a9fe6080481f21d455e7cd3.zip
detail (comment)
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index fb617eab..214ac283 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.220 2014/06/24 17:00:13 roberto Exp roberto $ 2** $Id: lapi.c,v 2.221 2014/06/26 17:25:11 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1020,7 +1020,7 @@ LUA_API int lua_gc (lua_State *L, int what, int data) {
1020 case LUA_GCSTEP: { 1020 case LUA_GCSTEP: {
1021 l_mem debt = 1; /* =1 to signal that it did an actual step */ 1021 l_mem debt = 1; /* =1 to signal that it did an actual step */
1022 int oldrunning = g->gcrunning; 1022 int oldrunning = g->gcrunning;
1023 g->gcrunning = 1; /* force GC to run */ 1023 g->gcrunning = 1; /* allow GC to run */
1024 if (data == 0) { 1024 if (data == 0) {
1025 luaE_setdebt(g, -GCSTEPSIZE); /* to do a "small" step */ 1025 luaE_setdebt(g, -GCSTEPSIZE); /* to do a "small" step */
1026 luaC_step(L); 1026 luaC_step(L);