diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-04-26 12:39:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-04-26 12:39:25 -0300 |
commit | d4e6b750983febf3af0f09235169be9a9e9250d8 (patch) | |
tree | ae9852dd4327786f89cb7a499c384a01224397d3 /lapi.c | |
parent | a2f5c28a802ae99f2045ab96585fade2c65b2037 (diff) | |
download | lua-d4e6b750983febf3af0f09235169be9a9e9250d8.tar.gz lua-d4e6b750983febf3af0f09235169be9a9e9250d8.tar.bz2 lua-d4e6b750983febf3af0f09235169be9a9e9250d8.zip |
"integer" keys in tables are now lua_Integer, not 'int'.
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 2.173 2013/04/15 15:43:34 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 2.174 2013/04/25 13:52:49 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 | */ |
@@ -656,7 +656,7 @@ LUA_API void lua_rawget (lua_State *L, int idx) { | |||
656 | } | 656 | } |
657 | 657 | ||
658 | 658 | ||
659 | LUA_API void lua_rawgeti (lua_State *L, int idx, int n) { | 659 | LUA_API void lua_rawgeti (lua_State *L, int idx, lua_Integer n) { |
660 | StkId t; | 660 | StkId t; |
661 | lua_lock(L); | 661 | lua_lock(L); |
662 | t = index2addr(L, idx); | 662 | t = index2addr(L, idx); |
@@ -791,7 +791,7 @@ LUA_API void lua_rawset (lua_State *L, int idx) { | |||
791 | } | 791 | } |
792 | 792 | ||
793 | 793 | ||
794 | LUA_API void lua_rawseti (lua_State *L, int idx, int n) { | 794 | LUA_API void lua_rawseti (lua_State *L, int idx, lua_Integer n) { |
795 | StkId t; | 795 | StkId t; |
796 | lua_lock(L); | 796 | lua_lock(L); |
797 | api_checknelems(L, 1); | 797 | api_checknelems(L, 1); |