lua-users home
lua-l archive

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


Shmuel Zeigerman wrote:
Geoff Richards wrote:
These commands demonstrate the problem:

    lua -e 'print(0, -0)'    #  0  0
    lua -e 'print(-0, 0)'    # -0 -0

Can't reproduce that on Windows: -0 is never printed.

Update: it depends on the compiler Lua was built with.

MinGW/gcc: problem is not reproduced.
BCC32(5.5.1): problem is reproduced.

(default compiler settings in both cases).

--
Shmuel