diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-25 17:01:37 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-10-25 17:01:37 -0200 |
commit | 4590a89b32b62c75fca7ced96c282c7793b8885c (patch) | |
tree | 99ec05f9ba4ca157cbc8736d0b923d479065bf54 /ldo.c | |
parent | 1475cb59bf16c6af7ecd937e13da0ca0f451a191 (diff) | |
download | lua-4590a89b32b62c75fca7ced96c282c7793b8885c.tar.gz lua-4590a89b32b62c75fca7ced96c282c7793b8885c.tar.bz2 lua-4590a89b32b62c75fca7ced96c282c7793b8885c.zip |
corrected warnings from different compilers (mostly casts and small
details)
Diffstat (limited to 'ldo.c')
-rw-r--r-- | ldo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldo.c,v 2.88 2010/06/04 13:06:15 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.89 2010/09/30 17:21:31 roberto Exp roberto $ |
3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -177,7 +177,7 @@ void luaD_growstack (lua_State *L, int n) { | |||
177 | if (size > LUAI_MAXSTACK) /* error after extra size? */ | 177 | if (size > LUAI_MAXSTACK) /* error after extra size? */ |
178 | luaD_throw(L, LUA_ERRERR); | 178 | luaD_throw(L, LUA_ERRERR); |
179 | else { | 179 | else { |
180 | int needed = L->top - L->stack + n + EXTRA_STACK; | 180 | int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK; |
181 | int newsize = 2 * size; | 181 | int newsize = 2 * size; |
182 | if (newsize > LUAI_MAXSTACK) newsize = LUAI_MAXSTACK; | 182 | if (newsize > LUAI_MAXSTACK) newsize = LUAI_MAXSTACK; |
183 | if (newsize < needed) newsize = needed; | 183 | if (newsize < needed) newsize = needed; |