aboutsummaryrefslogtreecommitdiff
path: root/src/lj_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_api.c')
-rw-r--r--src/lj_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_api.c b/src/lj_api.c
index 05fb41a7..30b92924 100644
--- a/src/lj_api.c
+++ b/src/lj_api.c
@@ -1153,7 +1153,7 @@ LUA_API int lua_gc(lua_State *L, int what, int data)
1153 MSize a = (MSize)data << 10; 1153 MSize a = (MSize)data << 10;
1154 g->gc.threshold = (a <= g->gc.total) ? (g->gc.total - a) : 0; 1154 g->gc.threshold = (a <= g->gc.total) ? (g->gc.total - a) : 0;
1155 while (g->gc.total >= g->gc.threshold) 1155 while (g->gc.total >= g->gc.threshold)
1156 if (lj_gc_step(L)) { 1156 if (lj_gc_step(L) > 0) {
1157 res = 1; 1157 res = 1;
1158 break; 1158 break;
1159 } 1159 }