diff options
Diffstat (limited to 'ltablib.c')
| -rw-r--r-- | ltablib.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ltablib.c,v 1.49 2009/11/26 17:35:13 roberto Exp roberto $ | 2 | ** $Id: ltablib.c,v 1.50 2009/12/07 15:50:27 roberto Exp roberto $ |
| 3 | ** Library for Table Manipulation | 3 | ** Library for Table Manipulation |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -16,7 +16,7 @@ | |||
| 16 | #include "lualib.h" | 16 | #include "lualib.h" |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | #define aux_getn(L,n) (luaL_checktype(L, n, LUA_TTABLE), lua_objlen(L, n)) | 19 | #define aux_getn(L,n) (luaL_checktype(L, n, LUA_TTABLE), lua_rawlen(L, n)) |
| 20 | 20 | ||
| 21 | 21 | ||
| 22 | static int foreachi (lua_State *L) { | 22 | static int foreachi (lua_State *L) { |
| @@ -154,7 +154,7 @@ static int tconcat (lua_State *L) { | |||
| 154 | const char *sep = luaL_optlstring(L, 2, "", &lsep); | 154 | const char *sep = luaL_optlstring(L, 2, "", &lsep); |
| 155 | luaL_checktype(L, 1, LUA_TTABLE); | 155 | luaL_checktype(L, 1, LUA_TTABLE); |
| 156 | i = luaL_optint(L, 3, 1); | 156 | i = luaL_optint(L, 3, 1); |
| 157 | last = luaL_opt(L, luaL_checkint, 4, (int)lua_objlen(L, 1)); | 157 | last = luaL_opt(L, luaL_checkint, 4, (int)lua_rawlen(L, 1)); |
| 158 | luaL_buffinit(L, &b); | 158 | luaL_buffinit(L, &b); |
| 159 | for (; i < last; i++) { | 159 | for (; i < last; i++) { |
| 160 | addfield(L, &b, i); | 160 | addfield(L, &b, i); |
