diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-06-21 10:50:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2007-06-21 10:50:53 -0300 |
commit | 791d8d858502f34204e0460c73e5eb6d340bcd92 (patch) | |
tree | 9dc2805b3ac1838e45bcabaa3d11bc358f38842a /ltablib.c | |
parent | e85515958b0910e932cd50d5366c7406401d5236 (diff) | |
download | lua-791d8d858502f34204e0460c73e5eb6d340bcd92.tar.gz lua-791d8d858502f34204e0460c73e5eb6d340bcd92.tar.bz2 lua-791d8d858502f34204e0460c73e5eb6d340bcd92.zip |
detail
Diffstat (limited to 'ltablib.c')
-rw-r--r-- | ltablib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltablib.c,v 1.38 2005/10/23 17:38:15 roberto Exp roberto $ | 2 | ** $Id: ltablib.c,v 1.39 2007/06/21 13:48:04 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 | */ |
@@ -129,7 +129,7 @@ static int tconcat (lua_State *L) { | |||
129 | const char *sep = luaL_optlstring(L, 2, "", &lsep); | 129 | const char *sep = luaL_optlstring(L, 2, "", &lsep); |
130 | luaL_checktype(L, 1, LUA_TTABLE); | 130 | luaL_checktype(L, 1, LUA_TTABLE); |
131 | i = luaL_optint(L, 3, 1); | 131 | i = luaL_optint(L, 3, 1); |
132 | last = luaL_opt(L, luaL_checkint, 4, lua_objlen(L, 1)); | 132 | last = luaL_opt(L, luaL_checkint, 4, (int)lua_objlen(L, 1)); |
133 | luaL_buffinit(L, &b); | 133 | luaL_buffinit(L, &b); |
134 | for (; i <= last; i++) { | 134 | for (; i <= last; i++) { |
135 | lua_rawgeti(L, 1, i); | 135 | lua_rawgeti(L, 1, i); |