aboutsummaryrefslogtreecommitdiff
path: root/src/lj_api.c
diff options
context:
space:
mode:
authorMike Pall <mike>2014-12-20 00:17:50 +0100
committerMike Pall <mike>2014-12-20 00:17:50 +0100
commit6e9145a882ea70fe438d59959ac4e65481fe5e85 (patch)
tree98e7c78e5aab6bd0360d9e00e4c82e9f1634c96d /src/lj_api.c
parent82e6e5fb5f17e497b3341322998ede75ec29e554 (diff)
downloadluajit-6e9145a882ea70fe438d59959ac4e65481fe5e85.tar.gz
luajit-6e9145a882ea70fe438d59959ac4e65481fe5e85.tar.bz2
luajit-6e9145a882ea70fe438d59959ac4e65481fe5e85.zip
Cleanup of memory vs. GC sizes. No functional changes.
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 1ccd7be1..03be80f9 100644
--- a/src/lj_api.c
+++ b/src/lj_api.c
@@ -1150,7 +1150,7 @@ LUA_API int lua_gc(lua_State *L, int what, int data)
1150 res = (int)(g->gc.total & 0x3ff); 1150 res = (int)(g->gc.total & 0x3ff);
1151 break; 1151 break;
1152 case LUA_GCSTEP: { 1152 case LUA_GCSTEP: {
1153 MSize a = (MSize)data << 10; 1153 GCSize a = (GCSize)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) > 0) { 1156 if (lj_gc_step(L) > 0) {