diff options
Diffstat (limited to 'ltablib.c')
-rw-r--r-- | ltablib.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ltablib.c,v 1.75 2014/08/21 20:07:56 roberto Exp roberto $ | 2 | ** $Id: ltablib.c,v 1.76 2014/09/22 06:42:15 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 | */ |
@@ -91,7 +91,7 @@ static int tinsert (lua_State *L) { | |||
91 | break; | 91 | break; |
92 | } | 92 | } |
93 | default: { | 93 | default: { |
94 | return luaL_error(L, "wrong number of arguments to " LUA_QL("insert")); | 94 | return luaL_error(L, "wrong number of arguments to 'insert'"); |
95 | } | 95 | } |
96 | } | 96 | } |
97 | (*ta.seti)(L, 1, pos); /* t[pos] = v */ | 97 | (*ta.seti)(L, 1, pos); /* t[pos] = v */ |
@@ -154,8 +154,8 @@ static int tmove (lua_State *L) { | |||
154 | static void addfield (lua_State *L, luaL_Buffer *b, TabA *ta, lua_Integer i) { | 154 | static void addfield (lua_State *L, luaL_Buffer *b, TabA *ta, lua_Integer i) { |
155 | (*ta->geti)(L, 1, i); | 155 | (*ta->geti)(L, 1, i); |
156 | if (!lua_isstring(L, -1)) | 156 | if (!lua_isstring(L, -1)) |
157 | luaL_error(L, "invalid value (%s) at index %d in table for " | 157 | luaL_error(L, "invalid value (%s) at index %d in table for 'concat'", |
158 | LUA_QL("concat"), luaL_typename(L, -1), i); | 158 | luaL_typename(L, -1), i); |
159 | luaL_addvalue(b); | 159 | luaL_addvalue(b); |
160 | } | 160 | } |
161 | 161 | ||