aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-04 11:30:31 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-04 11:30:31 -0300
commitd477e4ffd69dc530e3369015190db880de90aaf2 (patch)
treec5047587f4f4a906a49a88c7a918bb7b032a6b59
parentce09af1e25c1bd033f020f644095ded24216ee30 (diff)
downloadlua-d477e4ffd69dc530e3369015190db880de90aaf2.tar.gz
lua-d477e4ffd69dc530e3369015190db880de90aaf2.tar.bz2
lua-d477e4ffd69dc530e3369015190db880de90aaf2.zip
detail
-rw-r--r--ltablib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ltablib.c b/ltablib.c
index 86eb31f3..15cad0e6 100644
--- a/ltablib.c
+++ b/ltablib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltablib.c,v 1.11 2002/08/06 17:06:56 roberto Exp roberto $ 2** $Id: ltablib.c,v 1.12 2002/08/06 18:01:50 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*/
@@ -156,8 +156,7 @@ static int str_concat (lua_State *L) {
156 luaL_buffinit(L, &b); 156 luaL_buffinit(L, &b);
157 for (i=1; i<=n; i++) { 157 for (i=1; i<=n; i++) {
158 lua_rawgeti(L, 1, i); 158 lua_rawgeti(L, 1, i);
159 luaL_arg_check(L, lua_isstring(L, -1), 1, 159 luaL_arg_check(L, lua_isstring(L, -1), 1, "table contains non-strings");
160 "table contains non-strings");
161 luaL_addvalue(&b); 160 luaL_addvalue(&b);
162 if (i != n) 161 if (i != n)
163 luaL_addlstring(&b, sep, lsep); 162 luaL_addlstring(&b, sep, lsep);