Commits

Harald Klimach  committed 3b1b562

Applied patch 3 for Lua 5.2.2
Wrong assert when reporting concatenation errors (manifests only when Lua is compiled in debug mode).

  • Participants
  • Parent commits a822b4e

Comments (0)

Files changed (1)

File external/lua-5.2.2/src/ldebug.c

 
 l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2) {
   if (ttisstring(p1) || ttisnumber(p1)) p1 = p2;
-  lua_assert(!ttisstring(p1) && !ttisnumber(p2));
+  lua_assert(!ttisstring(p1) && !ttisnumber(p1));
   luaG_typeerror(L, p1, "concatenate");
 }