From ac78b914b655dd8e89d306f6336a229452046ead Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 30 Nov 2017 13:37:16 -0200 Subject: warnings from Visual Studio /W3 --- ltm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ltm.c') diff --git a/ltm.c b/ltm.c index 5ee123f5..fe87553d 100644 --- a/ltm.c +++ b/ltm.c @@ -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; -- cgit v1.2.3-55-g6feb