[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.2.3 (rc1) now available
- From: Ulrich Schmidt <u.sch.zw@...>
- Date: Fri, 15 Nov 2013 13:09:02 +0100
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.