From 4590a89b32b62c75fca7ced96c282c7793b8885c Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Oct 2010 17:01:37 -0200 Subject: corrected warnings from different compilers (mostly casts and small details) --- ldo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldo.c') diff --git a/ldo.c b/ldo.c index 1b675264..dc489446 100644 --- a/ldo.c +++ b/ldo.c @@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 2.88 2010/06/04 13:06:15 roberto Exp roberto $ +** $Id: ldo.c,v 2.89 2010/09/30 17:21:31 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -177,7 +177,7 @@ void luaD_growstack (lua_State *L, int n) { if (size > LUAI_MAXSTACK) /* error after extra size? */ luaD_throw(L, LUA_ERRERR); else { - int needed = L->top - L->stack + n + EXTRA_STACK; + int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK; int newsize = 2 * size; if (newsize > LUAI_MAXSTACK) newsize = LUAI_MAXSTACK; if (newsize < needed) newsize = needed; -- cgit v1.2.3-55-g6feb