[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.3 (rc1) now available
- From: kamicc olo <kamicc@...>
- Date: Fri, 15 Nov 2013 14:31:18 +0200
Provided code snippet works well on `Lua 5.2.3 (rc1)` built with `gcc
4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)` on my Linux x86_64 machine.
On 11/15/13, Ulrich Schmidt <u.sch.zw@gmx.de> wrote:
> Hi all.
> I detected a strange error in lua5.2.2 and tried 5.2.3 with same result:
>
> I ran the testsuite "lua-5.2.2-tests". In "literals.lua" lua errors out.
> I investigated the error and wrote this demonstration:
>
> --8x-----------------------------------------------------[bug.lua]---
> a = "0123456789"
> b = ""
> ok = true
> while ok do
> local i = string.len(b)
> print(i, i-(""..i))
> assert((i-(""..i)) == 0, "string.len() result not int!")
> b = b..a
> end
> --8x-----------------------------------------------------------------
>
> I am not shure its related to my Pelles-C Compiler. I already disabled
> all Compiler Optimisation to be save.
>
> Where should i start looking at? Or is it a real bug?
>
> Greetings.
> Ulrich.
>
>