[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [Bug?] 0 vs -0 / Incorrect Optimization or Parsing
- From: Mike Pall <mikelu-0907@...>
- Date: Wed, 29 Jul 2009 16:55:26 +0200
Luiz Henrique de Figueiredo wrote:
> > This is a known issue and there's even a bug fix for it:
> >
> > http://lua-users.org/lists/lua-l/2008-04/msg00136.html
> >
> > But for some reason that fix never went into Lua 5.1.4. :-(
>
> It will be in Lua 5.2.
Err, but this is a genuine bug, not a new feature. IMHO a fix for
it should be merged into Lua 5.1.5 (like all the other pending bug
fixes).
BTW: same problem, but not fixed by the provided patch:
$ lua -e "print(-2^-2000, 0)"
-0 -0
(Should print -0 and 0)
--Mike