diff options
Diffstat (limited to '')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1199,7 +1199,7 @@ LUA_API int lua_gc (lua_State *L, int what, ...) { | |||
1199 | case LUA_GCGEN: { | 1199 | case LUA_GCGEN: { |
1200 | int minormul = va_arg(argp, int); | 1200 | int minormul = va_arg(argp, int); |
1201 | int majormul = va_arg(argp, int); | 1201 | int majormul = va_arg(argp, int); |
1202 | res = isdecGCmodegen(g) ? LUA_GCGEN : LUA_GCINC; | 1202 | res = (g->gckind == KGC_INC) ? LUA_GCINC : LUA_GCGEN; |
1203 | if (minormul != 0) | 1203 | if (minormul != 0) |
1204 | g->genminormul = minormul; | 1204 | g->genminormul = minormul; |
1205 | if (majormul != 0) | 1205 | if (majormul != 0) |
@@ -1211,7 +1211,7 @@ LUA_API int lua_gc (lua_State *L, int what, ...) { | |||
1211 | int pause = va_arg(argp, int); | 1211 | int pause = va_arg(argp, int); |
1212 | int stepmul = va_arg(argp, int); | 1212 | int stepmul = va_arg(argp, int); |
1213 | int stepsize = va_arg(argp, int); | 1213 | int stepsize = va_arg(argp, int); |
1214 | res = isdecGCmodegen(g) ? LUA_GCGEN : LUA_GCINC; | 1214 | res = (g->gckind == KGC_INC) ? LUA_GCINC : LUA_GCGEN; |
1215 | if (pause != 0) | 1215 | if (pause != 0) |
1216 | setgcparam(g->gcpause, pause); | 1216 | setgcparam(g->gcpause, pause); |
1217 | if (stepmul != 0) | 1217 | if (stepmul != 0) |