summaryrefslogtreecommitdiff
path: root/src/lj_api.c
diff options
context:
space:
mode:
authorMike Pall <mike>2013-11-05 19:45:04 +0100
committerMike Pall <mike>2013-11-05 19:45:04 +0100
commit8941b1994e1bb2a82cb8221eb5063bfb6e0ef81b (patch)
tree733f86c358a91a67efc1f07b94e352baed115f02 /src/lj_api.c
parent7b4d5306c7441a373516ee54bd942218f35348c2 (diff)
downloadluajit-8941b1994e1bb2a82cb8221eb5063bfb6e0ef81b.tar.gz
luajit-8941b1994e1bb2a82cb8221eb5063bfb6e0ef81b.tar.bz2
luajit-8941b1994e1bb2a82cb8221eb5063bfb6e0ef81b.zip
Fix for last commit
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 edb2d620..b5c43bea 100644
--- a/src/lj_api.c
+++ b/src/lj_api.c
@@ -1164,7 +1164,7 @@ LUA_API int lua_gc(lua_State *L, int what, int data)
1164 MSize a = (MSize)data << 10; 1164 MSize a = (MSize)data << 10;
1165 g->gc.threshold = (a <= g->gc.total) ? (g->gc.total - a) : 0; 1165 g->gc.threshold = (a <= g->gc.total) ? (g->gc.total - a) : 0;
1166 while (g->gc.total >= g->gc.threshold) 1166 while (g->gc.total >= g->gc.threshold)
1167 if (lj_gc_step(L)) { 1167 if (lj_gc_step(L) > 0) {
1168 res = 1; 1168 res = 1;
1169 break; 1169 break;
1170 } 1170 }