From dcad08b76d3d251c0beff4e7c692035c11641509 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 18 Jun 2015 11:19:52 -0300 Subject: details (use original type when saving variable's value) --- lapi.c | 4 ++-- ldo.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lapi.c b/lapi.c index 608d48c2..2b045bb5 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.248 2015/03/28 19:14:47 roberto Exp roberto $ +** $Id: lapi.c,v 2.249 2015/04/06 12:23:48 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -1043,7 +1043,7 @@ LUA_API int lua_gc (lua_State *L, int what, int data) { } case LUA_GCSTEP: { l_mem debt = 1; /* =1 to signal that it did an actual step */ - int oldrunning = g->gcrunning; + lu_byte oldrunning = g->gcrunning; g->gcrunning = 1; /* allow GC to run */ if (data == 0) { luaE_setdebt(g, -GCSTEPSIZE); /* to do a "small" step */ diff --git a/ldo.c b/ldo.c index 2d0ad25a..155ecf76 100644 --- a/ldo.c +++ b/ldo.c @@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 2.137 2015/03/30 16:05:23 roberto Exp roberto $ +** $Id: ldo.c,v 2.138 2015/05/22 17:48:19 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -570,7 +570,7 @@ static void resume (lua_State *L, void *ud) { LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs) { int status; - int oldnny = L->nny; /* save "number of non-yieldable" calls */ + unsigned short oldnny = L->nny; /* save "number of non-yieldable" calls */ lua_lock(L); luai_userstateresume(L, nargs); L->nCcalls = (from) ? from->nCcalls + 1 : 1; -- cgit v1.2.3-55-g6feb