diff options
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lapi.c,v 1.201 2002/06/20 20:41:46 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.202 2002/06/24 13:08:45 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 | */ |
@@ -426,7 +426,7 @@ LUA_API void lua_gettable (lua_State *L, int index) { | |||
426 | const TObject *v; | 426 | const TObject *v; |
427 | lua_lock(L); | 427 | lua_lock(L); |
428 | t = luaA_index(L, index); | 428 | t = luaA_index(L, index); |
429 | v = luaV_gettable(L, t, L->top-1); | 429 | v = luaV_gettable(L, t, L->top-1, 0); |
430 | setobj(L->top - 1, v); | 430 | setobj(L->top - 1, v); |
431 | lua_unlock(L); | 431 | lua_unlock(L); |
432 | } | 432 | } |
@@ -597,7 +597,7 @@ LUA_API int lua_setglobals (lua_State *L, int level) { | |||
597 | ** `load' and `call' functions (run Lua code) | 597 | ** `load' and `call' functions (run Lua code) |
598 | */ | 598 | */ |
599 | 599 | ||
600 | LUA_API void lua_upcall (lua_State *L, int nargs, int nresults) { | 600 | LUA_API void lua_call (lua_State *L, int nargs, int nresults) { |
601 | StkId func; | 601 | StkId func; |
602 | lua_lock(L); | 602 | lua_lock(L); |
603 | api_checknelems(L, nargs+1); | 603 | api_checknelems(L, nargs+1); |