Skip to content

Commit

Permalink
Fixed "attempt to concat a [rope|substring] value"
Browse files Browse the repository at this point in the history
  • Loading branch information
MCJack123 committed Oct 29, 2021
1 parent 8c1d549 commit 0a4bfb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ldebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ void luaG_typeerror (lua_State *L, const TValue *o, const char *op) {


void luaG_concaterror (lua_State *L, StkId p1, StkId p2) {
if (ttisstring(p1) || ttisnumber(p1)) p1 = p2;
if (ttisstring(p1) || ttisnumber(p1) || ttisrope(p1) || ttissubstr(p1)) p1 = p2;
lua_assert(!ttisstring(p1) && !ttisnumber(p1));
luaG_typeerror(L, p1, "concatenate");
}
Expand Down

0 comments on commit 0a4bfb8

Please sign in to comment.