diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-02-15 13:31:45 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-02-15 13:31:45 -0300 |
commit | c03c527fd207b4ad8f5a8e0f4f2c176bd227c979 (patch) | |
tree | 85f5b692d3e6818ab4bdd21765658c8f0b1fc44b /ltablib.c | |
parent | 38cc7d40a4bcb89314d212fdffd2ca8deebc3cb7 (diff) | |
download | lua-c03c527fd207b4ad8f5a8e0f4f2c176bd227c979.tar.gz lua-c03c527fd207b4ad8f5a8e0f4f2c176bd227c979.tar.bz2 lua-c03c527fd207b4ad8f5a8e0f4f2c176bd227c979.zip |
Bug: 'string.concat' error message uses wrong format
Diffstat (limited to 'ltablib.c')
-rw-r--r-- | ltablib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -146,7 +146,7 @@ static int tmove (lua_State *L) { | |||
146 | static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) { | 146 | static void addfield (lua_State *L, luaL_Buffer *b, lua_Integer i) { |
147 | lua_geti(L, 1, i); | 147 | lua_geti(L, 1, i); |
148 | if (!lua_isstring(L, -1)) | 148 | if (!lua_isstring(L, -1)) |
149 | luaL_error(L, "invalid value (%s) at index %d in table for 'concat'", | 149 | luaL_error(L, "invalid value (%s) at index %I in table for 'concat'", |
150 | luaL_typename(L, -1), i); | 150 | luaL_typename(L, -1), i); |
151 | luaL_addvalue(b); | 151 | luaL_addvalue(b); |
152 | } | 152 | } |