diff options
Diffstat (limited to '')
-rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1163,7 +1163,7 @@ LUA_API int lua_gc (lua_State *L, int what, ...) { | |||
1163 | } | 1163 | } |
1164 | case LUA_GCSTEP: { | 1164 | case LUA_GCSTEP: { |
1165 | int data = va_arg(argp, int); | 1165 | int data = va_arg(argp, int); |
1166 | l_mem debt = 1; /* =1 to signal that it did an actual step */ | 1166 | l_obj debt = 1; /* =1 to signal that it did an actual step */ |
1167 | lu_byte oldstp = g->gcstp; | 1167 | lu_byte oldstp = g->gcstp; |
1168 | g->gcstp = 0; /* allow GC to run (GCSTPGC must be zero here) */ | 1168 | g->gcstp = 0; /* allow GC to run (GCSTPGC must be zero here) */ |
1169 | if (data == 0) { | 1169 | if (data == 0) { |
@@ -1217,8 +1217,8 @@ LUA_API int lua_gc (lua_State *L, int what, ...) { | |||
1217 | if (stepmul != 0) | 1217 | if (stepmul != 0) |
1218 | setgcparam(g->gcstepmul, stepmul); | 1218 | setgcparam(g->gcstepmul, stepmul); |
1219 | if (stepsize != 0) | 1219 | if (stepsize != 0) |
1220 | g->gcstepsize = (stepsize <= log2maxs(l_mem)) ? stepsize | 1220 | g->gcstepsize = (stepsize <= log2maxs(l_obj)) ? stepsize |
1221 | : log2maxs(l_mem); | 1221 | : log2maxs(l_obj); |
1222 | luaC_changemode(L, KGC_INC); | 1222 | luaC_changemode(L, KGC_INC); |
1223 | break; | 1223 | break; |
1224 | } | 1224 | } |