diff options
| -rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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); |
