aboutsummaryrefslogtreecommitdiff
path: root/ltm.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 /ltm.c
parent10b8c99bbbb5405f5fb37513645421b8e3c3ba43 (diff)
downloadlua-ac78b914b655dd8e89d306f6336a229452046ead.tar.gz
lua-ac78b914b655dd8e89d306f6336a229452046ead.tar.bz2
lua-ac78b914b655dd8e89d306f6336a229452046ead.zip
warnings from Visual Studio /W3
Diffstat (limited to 'ltm.c')
-rw-r--r--ltm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltm.c b/ltm.c
index 5ee123f5..fe87553d 100644
--- a/ltm.c
+++ b/ltm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltm.c,v 2.49 2017/11/23 19:18:10 roberto Exp roberto $ 2** $Id: ltm.c,v 2.50 2017/11/27 17:44:31 roberto Exp roberto $
3** Tag methods 3** Tag methods
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -237,7 +237,7 @@ void luaT_getvarargs (lua_State *L, TValue *t, StkId where, int wanted) {
237 Table *h = hvalue(t); 237 Table *h = hvalue(t);
238 if (wanted < 0) { /* get all? */ 238 if (wanted < 0) { /* get all? */
239 const TValue *ns = luaH_getstr(h, G(L)->nfield); 239 const TValue *ns = luaH_getstr(h, G(L)->nfield);
240 int n = (ttisinteger(ns)) ? ivalue(ns) : 0; 240 int n = (ttisinteger(ns)) ? cast_int(ivalue(ns)) : 0;
241 wanted = n; 241 wanted = n;
242 checkstackp(L, n, where); 242 checkstackp(L, n, where);
243 L->top = where + n; 243 L->top = where + n;