lua-users home
lua-l archive

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


Roberto Ierusalimschy wrote:
> 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;
>  }

Yes, with this patch my JSON test suite completes successfully. Thanks
for fixing it!

Best regards,

David