detail
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: ltablib.c,v 1.11 2002/08/06 17:06:56 roberto Exp roberto $
|
** $Id: ltablib.c,v 1.12 2002/08/06 18:01:50 roberto Exp roberto $
|
||||||
** Library for Table Manipulation
|
** Library for Table Manipulation
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@@ -156,8 +156,7 @@ static int str_concat (lua_State *L) {
|
|||||||
luaL_buffinit(L, &b);
|
luaL_buffinit(L, &b);
|
||||||
for (i=1; i<=n; i++) {
|
for (i=1; i<=n; i++) {
|
||||||
lua_rawgeti(L, 1, i);
|
lua_rawgeti(L, 1, i);
|
||||||
luaL_arg_check(L, lua_isstring(L, -1), 1,
|
luaL_arg_check(L, lua_isstring(L, -1), 1, "table contains non-strings");
|
||||||
"table contains non-strings");
|
|
||||||
luaL_addvalue(&b);
|
luaL_addvalue(&b);
|
||||||
if (i != n)
|
if (i != n)
|
||||||
luaL_addlstring(&b, sep, lsep);
|
luaL_addlstring(&b, sep, lsep);
|
||||||
|
|||||||
Reference in New Issue
Block a user