From e723c75c02a48d0c766f1f30f7a321f7fdb239dc Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sat, 28 Mar 2015 16:14:47 -0300 Subject: details (avoid 'lint' warnings) --- ldebug.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 86ee7dae..6e4cdb35 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 2.112 2015/03/06 19:49:50 roberto Exp roberto $ +** $Id: ldebug.c,v 2.113 2015/03/11 16:10:41 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -126,7 +126,7 @@ static const char *upvalname (Proto *p, int uv) { static const char *findvararg (CallInfo *ci, int n, StkId *pos) { int nparams = clLvalue(ci->func)->p->numparams; - if (n >= ci->u.l.base - ci->func - nparams) + if (n >= cast_int(ci->u.l.base - ci->func) - nparams) return NULL; /* no such vararg */ else { *pos = ci->func + nparams + n; @@ -172,7 +172,7 @@ LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n) { name = luaF_getlocalname(clLvalue(L->top - 1)->p, n, 0); } else { /* active function; get information through 'ar' */ - StkId pos = 0; /* to avoid warnings */ + StkId pos = NULL; /* to avoid warnings */ name = findlocal(L, ar->i_ci, n, &pos); if (name) { setobj2s(L, L->top, pos); @@ -186,7 +186,7 @@ LUA_API const char *lua_getlocal (lua_State *L, const lua_Debug *ar, int n) { LUA_API const char *lua_setlocal (lua_State *L, const lua_Debug *ar, int n) { - StkId pos = 0; /* to avoid warnings */ + StkId pos = NULL; /* to avoid warnings */ const char *name; lua_lock(L); swapextra(L); -- cgit v1.2.3-55-g6feb