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 /ldo.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 'ldo.c')
-rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 2.187 2018/01/28 12:08:04 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.188 2018/01/28 13:39:52 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -673,7 +673,7 @@ LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs, | |||
673 | else lua_assert(status == L->status); /* normal end or yield */ | 673 | else lua_assert(status == L->status); /* normal end or yield */ |
674 | } | 674 | } |
675 | *nresults = (status == LUA_YIELD) ? L->ci->u2.nyield | 675 | *nresults = (status == LUA_YIELD) ? L->ci->u2.nyield |
676 | : L->top - (L->ci->func + 1); | 676 | : cast_int(L->top - (L->ci->func + 1)); |
677 | L->nny = oldnny; /* restore 'nny' */ | 677 | L->nny = oldnny; /* restore 'nny' */ |
678 | L->nCcalls--; | 678 | L->nCcalls--; |
679 | // lua_assert(L->nCcalls == ((from) ? from->nCcalls : 0)); | 679 | // lua_assert(L->nCcalls == ((from) ? from->nCcalls : 0)); |