aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index 389d69bb..f4b8d6a4 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.238 2017/11/07 13:25:26 roberto Exp roberto $ 2** $Id: lgc.c,v 2.239 2017/11/23 19:29:04 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1270,7 +1270,7 @@ static void genstep (lua_State *L, global_State *g) {
1270 lu_mem mem; 1270 lu_mem mem;
1271 youngcollection(L, g); 1271 youngcollection(L, g);
1272 mem = gettotalbytes(g); 1272 mem = gettotalbytes(g);
1273 luaE_setdebt(g, -((mem / 100) * g->genminormul)); 1273 luaE_setdebt(g, -(cast(l_mem, (mem / 100)) * g->genminormul));
1274 g->GCestimate = majorbase; /* preserve base value */ 1274 g->GCestimate = majorbase; /* preserve base value */
1275 } 1275 }
1276} 1276}