diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-28 16:14:47 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2015-03-28 16:14:47 -0300 |
commit | e723c75c02a48d0c766f1f30f7a321f7fdb239dc (patch) | |
tree | aa3f11828e25ccf2dc02d077e59ee12a4313a3bd /lapi.c | |
parent | b436ed58a3416c2e1936bdce880ac09925401a87 (diff) | |
download | lua-e723c75c02a48d0c766f1f30f7a321f7fdb239dc.tar.gz lua-e723c75c02a48d0c766f1f30f7a321f7fdb239dc.tar.bz2 lua-e723c75c02a48d0c766f1f30f7a321f7fdb239dc.zip |
details (avoid 'lint' warnings)
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 2.246 2015/02/11 18:47:22 roberto Exp $ | 2 | ** $Id: lapi.c,v 2.247 2015/03/06 19:49:50 roberto Exp roberto $ |
3 | ** Lua API | 3 | ** Lua API |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -160,7 +160,7 @@ LUA_API const lua_Number *lua_version (lua_State *L) { | |||
160 | LUA_API int lua_absindex (lua_State *L, int idx) { | 160 | LUA_API int lua_absindex (lua_State *L, int idx) { |
161 | return (idx > 0 || ispseudo(idx)) | 161 | return (idx > 0 || ispseudo(idx)) |
162 | ? idx | 162 | ? idx |
163 | : cast_int(L->top - L->ci->func + idx); | 163 | : cast_int(L->top - L->ci->func) + idx; |
164 | } | 164 | } |
165 | 165 | ||
166 | 166 | ||