diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-30 13:37:16 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-30 13:37:16 -0200 |
| commit | ac78b914b655dd8e89d306f6336a229452046ead (patch) | |
| tree | 39256ce1e13ddd39d114d838474a88be081cb4b6 /ltm.c | |
| parent | 10b8c99bbbb5405f5fb37513645421b8e3c3ba43 (diff) | |
| download | lua-ac78b914b655dd8e89d306f6336a229452046ead.tar.gz lua-ac78b914b655dd8e89d306f6336a229452046ead.tar.bz2 lua-ac78b914b655dd8e89d306f6336a229452046ead.zip | |
warnings from Visual Studio /W3
Diffstat (limited to 'ltm.c')
| -rw-r--r-- | ltm.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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; |
