aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-01-29 14:21:35 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-01-29 14:21:35 -0200
commitdc0ab1e8ca38400d5d7b3a7d00ff7f6c33fdf3d3 (patch)
tree6a595627f188d1895d7c49c96bf99e5f6031f258 /ldo.c
parente2b15aa21d2f31ccc93e35f50928e26a8d9c84ce (diff)
downloadlua-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldo.c b/ldo.c
index 15bec173..6ab57f8e 100644
--- a/ldo.c
+++ b/ldo.c
@@ -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));