[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Bug/problem in Lua 5.0 beta
- From: Niklas Frykholm <niklas@...>
- Date: Mon, 10 Mar 2003 14:28:00 +0100
The test:
if ((long)x!=(long)tx)
in lundump.c --> LoadHeader() fails when Lua is compiled in release mode on
Vc7 with lua_Number set to float. The test works in debug mode.
(long)x becomes 314159264 and long(tx) 314159265.
The problem can be fixed by changing
#define TEST_NUMBER 3.14159265358979323846E8
in undump.h to
#define TEST_NUMBER 3.14159265358979323846E8f
// Niklas