lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > I tested it with 0.12(rc1) but now I downloaded 0.11 and there it
> > happens, too.
> 
> Sorry to insist, but are you sure about the bug in 0.12(rc1)? Can you
> reproduce it?

I think I found your bug. Can you test 0.12(rc1) with the following
fix?

--- lptree.c	2013/04/04 21:43:13	1.9
+++ lptree.c	2013/04/11 19:03:45
@@ -237,11 +237,11 @@
   for (i = 0; i < n - 1; i++) {  /* initial n-1 copies of Seq tag; Seq ... */
     tree->tag = TSeq; tree->u.ps = 2;
     sib1(tree)->tag = tag;
-    sib1(tree)->u.n = s ? s[i] : 0;
+    sib1(tree)->u.n = s ? (byte)s[i] : 0;
     tree = sib2(tree);
   }
   tree->tag = tag;  /* last one does not need TSeq */
-  tree->u.n = s ? s[i] : 0;
+  tree->u.n = s ? (byte)s[i] : 0;
 }


Thanks again,

-- Roberto