aboutsummaryrefslogtreecommitdiff
path: root/ltm.c
diff options
context:
space:
mode:
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;