aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lapi.c b/lapi.c
index 7bbdf70e..595a4512 100644
--- a/lapi.c
+++ b/lapi.c
@@ -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) {
160LUA_API int lua_absindex (lua_State *L, int idx) { 160LUA_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