[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work2) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sat, 22 Mar 2014 15:39:01 -0300
> On 22/03/2014 18.54, Roberto Ierusalimschy wrote:
> >It passed in "my Windows" (Windows 7-32, VS 2010). This can be a bug in
> >libc. Can you test it in C code?
> >
> >/* untested */
> >#include <stdio.h>
> >
> >int main (void) {
> > double d = -0.0;
> > printf("%.14g\n", d);
> > return 0;
> >}
>
> It prints 0, which I suppose it's wrong. This uses the old
> msvcrt.dll (I don't have a Microsoft C++ compiler installed).
It is wrong. (That is the reason we do not distribute the tests together
with Lua. It usually finds more bugs out of Lua than in Lua...)
-- Roberto