aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lapi.c5
-rw-r--r--lua.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/lapi.c b/lapi.c
index 27f51220..843e5606 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.207 2014/04/30 16:48:44 roberto Exp roberto $ 2** $Id: lapi.c,v 2.208 2014/05/01 18:18:06 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*/
@@ -735,7 +735,7 @@ LUA_API int lua_getmetatable (lua_State *L, int objindex) {
735} 735}
736 736
737 737
738LUA_API void lua_getuservalue (lua_State *L, int idx) { 738LUA_API int lua_getuservalue (lua_State *L, int idx) {
739 StkId o; 739 StkId o;
740 lua_lock(L); 740 lua_lock(L);
741 o = index2addr(L, idx); 741 o = index2addr(L, idx);
@@ -743,6 +743,7 @@ LUA_API void lua_getuservalue (lua_State *L, int idx) {
743 getuservalue(L, rawuvalue(o), L->top); 743 getuservalue(L, rawuvalue(o), L->top);
744 api_incr_top(L); 744 api_incr_top(L);
745 lua_unlock(L); 745 lua_unlock(L);
746 return ttnov(L->top - 1);
746} 747}
747 748
748 749
diff --git a/lua.h b/lua.h
index 7705421e..bef5ff29 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.302 2014/03/20 19:42:35 roberto Exp roberto $ 2** $Id: lua.h,v 1.303 2014/05/01 18:18:06 roberto Exp roberto $
3** Lua - A Scripting Language 3** Lua - A Scripting Language
4** Lua.org, PUC-Rio, Brazil (http://www.lua.org) 4** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
5** See Copyright Notice at the end of this file 5** See Copyright Notice at the end of this file
@@ -238,7 +238,7 @@ LUA_API int (lua_rawgetp) (lua_State *L, int idx, const void *p);
238LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); 238LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec);
239LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); 239LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz);
240LUA_API int (lua_getmetatable) (lua_State *L, int objindex); 240LUA_API int (lua_getmetatable) (lua_State *L, int objindex);
241LUA_API void (lua_getuservalue) (lua_State *L, int idx); 241LUA_API int (lua_getuservalue) (lua_State *L, int idx);
242 242
243 243
244/* 244/*