diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-01-29 14:21:35 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-01-29 14:21:35 -0200 |
commit | dc0ab1e8ca38400d5d7b3a7d00ff7f6c33fdf3d3 (patch) | |
tree | 6a595627f188d1895d7c49c96bf99e5f6031f258 /lvm.c | |
parent | e2b15aa21d2f31ccc93e35f50928e26a8d9c84ce (diff) | |
download | lua-dc0ab1e8ca38400d5d7b3a7d00ff7f6c33fdf3d3.tar.gz lua-dc0ab1e8ca38400d5d7b3a7d00ff7f6c33fdf3d3.tar.bz2 lua-dc0ab1e8ca38400d5d7b3a7d00ff7f6c33fdf3d3.zip |
warnings in VS (implicit casts from ptrdiff_t to int)
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.334 2018/01/14 17:27:50 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.335 2018/01/27 16:56:33 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -1488,7 +1488,7 @@ void luaV_execute (lua_State *L, CallInfo *ci) { | |||
1488 | if (b != 0) | 1488 | if (b != 0) |
1489 | L->top = ra + b; | 1489 | L->top = ra + b; |
1490 | else /* previous instruction set top */ | 1490 | else /* previous instruction set top */ |
1491 | b = L->top - ra; | 1491 | b = cast_int(L->top - ra); |
1492 | lua_assert(GETARG_C(i) - 1 == LUA_MULTRET); | 1492 | lua_assert(GETARG_C(i) - 1 == LUA_MULTRET); |
1493 | if (!ttisfunction(vra)) { /* not a function? */ | 1493 | if (!ttisfunction(vra)) { /* not a function? */ |
1494 | ProtectNT(luaD_tryfuncTM(L, ra)); /* try '__call' metamethod */ | 1494 | ProtectNT(luaD_tryfuncTM(L, ra)); /* try '__call' metamethod */ |