aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-30 13:37:16 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-30 13:37:16 -0200
commitac78b914b655dd8e89d306f6336a229452046ead (patch)
tree39256ce1e13ddd39d114d838474a88be081cb4b6 /lgc.c
parent10b8c99bbbb5405f5fb37513645421b8e3c3ba43 (diff)
downloadlua-ac78b914b655dd8e89d306f6336a229452046ead.tar.gz
lua-ac78b914b655dd8e89d306f6336a229452046ead.tar.bz2
lua-ac78b914b655dd8e89d306f6336a229452046ead.zip
warnings from Visual Studio /W3
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}