lua-users home
lua-l archive

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

On 27 November 2022 at 12:39:26 +01:00, Alexander Riegler <> wrote:
To test c89 compatibility, i wanted to compile lua 5.4.4 on a very old version  of MSVC. The compiler complains about the line 270 of lmathlib.c "#if (ULONG_MAX>>31>>31)>=3" with "Fatal error C1012: unmatched parenthesis: missing ')'". Is this caused by non-conformance to c89 of the new random generator code or is this just a compiler bug ?
Do you use MSVC 6, or maybe 2003? Visual C before 2005 did not really have proper support for 64-bit integers. It did know the compiler specific __int64 type but code generation around this datatype was sometimes non-existent or at least very buggy.

Rolf Kalbermatter