commit 2b1c2c61b025aa06446367965316b3878578a768
parent fa6ea831b36cbef0acf1595c9b9eec6171792715
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Mon, 6 May 2013 14:21:03 -0300
bug: Wrong assert when reporting concatenation errors.
Diffstat:
M | bugs | | | 27 | +++++++++++++++++++++++++-- |
1 file changed, 25 insertions(+), 2 deletions(-)
diff --git a/bugs b/bugs
@@ -1880,8 +1880,8 @@ patch = [[
+++ lundump.c 2008/04/04 19:51:41 2.7.1.4
@@ -1,5 +1,5 @@
/*
--** $Id: bugs,v 1.120 2013/02/07 15:57:47 roberto Exp roberto $
-+** $Id: bugs,v 1.120 2013/02/07 15:57:47 roberto Exp roberto $
+-** $Id: bugs,v 1.121 2013/05/02 16:13:27 roberto Exp roberto $
++** $Id: bugs,v 1.121 2013/05/02 16:13:27 roberto Exp roberto $
** load precompiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -2917,6 +2917,29 @@ patch = [[
]]
}
+Bug{
+what = [[Wrong assert when reporting concatenation errors
+(manifests only when Lua is compiled in debug mode)]],
+report = [[Roberto, 2013/05/05]],
+since = [[?]],
+fix = nil,
+example = [[
+-- only with Lua compiled in debug mode
+print({} .. 2)
+]],
+patch = [[
+--- ldebug.c 2013/04/12 18:48:47 2.90.1.1
++++ ldebug.c 2013/05/05 14:38:30
+@@ -519,5 +519,5 @@
+ 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");
+ }
+]]
+}
+
--[=[
Bug{
what = [[ ]],