summaryrefslogtreecommitdiff
path: root/lapi.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 /lapi.c
parente2b15aa21d2f31ccc93e35f50928e26a8d9c84ce (diff)
downloadlua-github-dc0ab1e8ca38400d5d7b3a7d00ff7f6c33fdf3d3.tar.gz
warnings in VS (implicit casts from ptrdiff_t to int)
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 3d148e09..63b66f92 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
/*
-** $Id: lapi.c,v 2.280 2018/01/10 12:02:35 roberto Exp roberto $
+** $Id: lapi.c,v 2.281 2018/01/28 15:13:26 roberto Exp roberto $
** Lua API
** See Copyright Notice in lua.h
*/
@@ -993,7 +993,7 @@ LUA_API int lua_pcallk (lua_State *L, int nargs, int nresults, int errfunc,
ci->u.c.k = k; /* save continuation */
ci->u.c.ctx = ctx; /* save context */
/* save information for error recovery */
- ci->u2.funcidx = savestack(L, c.func);
+ ci->u2.funcidx = cast_int(savestack(L, c.func));
ci->u.c.old_errfunc = L->errfunc;
L->errfunc = func;
setoah(ci->callstatus, L->allowhook); /* save value of 'allowhook' */