warnings from Visual Studio /W3

This commit is contained in:
Roberto Ierusalimschy
2017-11-30 13:37:16 -02:00
parent 10b8c99bbb
commit ac78b914b6
3 changed files with 6 additions and 6 deletions

4
lgc.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lgc.c,v 2.238 2017/11/07 13:25:26 roberto Exp roberto $
** $Id: lgc.c,v 2.239 2017/11/23 19:29:04 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -1270,7 +1270,7 @@ static void genstep (lua_State *L, global_State *g) {
lu_mem mem;
youngcollection(L, g);
mem = gettotalbytes(g);
luaE_setdebt(g, -((mem / 100) * g->genminormul));
luaE_setdebt(g, -(cast(l_mem, (mem / 100)) * g->genminormul));
g->GCestimate = majorbase; /* preserve base value */
}
}