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
ltm.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: ltm.c,v 2.49 2017/11/23 19:18:10 roberto Exp roberto $
** $Id: ltm.c,v 2.50 2017/11/27 17:44:31 roberto Exp roberto $
** Tag methods
** See Copyright Notice in lua.h
*/
@@ -237,7 +237,7 @@ void luaT_getvarargs (lua_State *L, TValue *t, StkId where, int wanted) {
Table *h = hvalue(t);
if (wanted < 0) { /* get all? */
const TValue *ns = luaH_getstr(h, G(L)->nfield);
int n = (ttisinteger(ns)) ? ivalue(ns) : 0;
int n = (ttisinteger(ns)) ? cast_int(ivalue(ns)) : 0;
wanted = n;
checkstackp(L, n, where);
L->top = where + n;