aboutsummaryrefslogtreecommitdiff
path: root/ldo.c
diff options
context:
space:
mode:
Diffstat (limited to 'ldo.c')
-rw-r--r--ldo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ldo.c b/ldo.c
index 933a55bf..1d1b7a71 100644
--- a/ldo.c
+++ b/ldo.c
@@ -241,7 +241,7 @@ int luaD_reallocstack (lua_State *L, int newsize, int raiseerror) {
241 int oldsize = stacksize(L); 241 int oldsize = stacksize(L);
242 int i; 242 int i;
243 StkId newstack; 243 StkId newstack;
244 int oldgcstop = G(L)->gcstopem; 244 lu_byte oldgcstop = G(L)->gcstopem;
245 lua_assert(newsize <= MAXSTACK || newsize == ERRORSTACKSIZE); 245 lua_assert(newsize <= MAXSTACK || newsize == ERRORSTACKSIZE);
246 relstack(L); /* change pointers to offsets */ 246 relstack(L); /* change pointers to offsets */
247 G(L)->gcstopem = 1; /* stop emergency collection */ 247 G(L)->gcstopem = 1; /* stop emergency collection */
@@ -357,7 +357,7 @@ void luaD_hook (lua_State *L, int event, int line,
357 int ftransfer, int ntransfer) { 357 int ftransfer, int ntransfer) {
358 lua_Hook hook = L->hook; 358 lua_Hook hook = L->hook;
359 if (hook && L->allowhook) { /* make sure there is a hook */ 359 if (hook && L->allowhook) { /* make sure there is a hook */
360 int mask = CIST_HOOKED; 360 unsigned mask = CIST_HOOKED;
361 CallInfo *ci = L->ci; 361 CallInfo *ci = L->ci;
362 ptrdiff_t top = savestack(L, L->top.p); /* preserve original 'top' */ 362 ptrdiff_t top = savestack(L, L->top.p); /* preserve original 'top' */
363 ptrdiff_t ci_top = savestack(L, ci->top.p); /* idem for 'ci->top' */ 363 ptrdiff_t ci_top = savestack(L, ci->top.p); /* idem for 'ci->top' */
@@ -1058,9 +1058,9 @@ int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
1058 luaZ_initbuffer(L, &p.buff); 1058 luaZ_initbuffer(L, &p.buff);
1059 status = luaD_pcall(L, f_parser, &p, savestack(L, L->top.p), L->errfunc); 1059 status = luaD_pcall(L, f_parser, &p, savestack(L, L->top.p), L->errfunc);
1060 luaZ_freebuffer(L, &p.buff); 1060 luaZ_freebuffer(L, &p.buff);
1061 luaM_freearray(L, p.dyd.actvar.arr, p.dyd.actvar.size); 1061 luaM_freearray(L, p.dyd.actvar.arr, cast_sizet(p.dyd.actvar.size));
1062 luaM_freearray(L, p.dyd.gt.arr, p.dyd.gt.size); 1062 luaM_freearray(L, p.dyd.gt.arr, cast_sizet(p.dyd.gt.size));
1063 luaM_freearray(L, p.dyd.label.arr, p.dyd.label.size); 1063 luaM_freearray(L, p.dyd.label.arr, cast_sizet(p.dyd.label.size));
1064 decnny(L); 1064 decnny(L);
1065 return status; 1065 return status;
1066} 1066}