mirror of
https://github.com/lua/lua
synced 2026-09-26 16:17:11 +03:00
warnings in VS (implicit casts from ptrdiff_t to int)
This commit is contained in:
parent
e2b15aa21d
commit
dc0ab1e8ca
3 changed files with 6 additions and 6 deletions
4
ldo.c
4
ldo.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: ldo.c,v 2.187 2018/01/28 12:08:04 roberto Exp roberto $
|
||||
** $Id: ldo.c,v 2.188 2018/01/28 13:39:52 roberto Exp roberto $
|
||||
** Stack and Call structure of Lua
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -673,7 +673,7 @@ LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs,
|
|||
else lua_assert(status == L->status); /* normal end or yield */
|
||||
}
|
||||
*nresults = (status == LUA_YIELD) ? L->ci->u2.nyield
|
||||
: L->top - (L->ci->func + 1);
|
||||
: cast_int(L->top - (L->ci->func + 1));
|
||||
L->nny = oldnny; /* restore 'nny' */
|
||||
L->nCcalls--;
|
||||
// lua_assert(L->nCcalls == ((from) ? from->nCcalls : 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue