[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Strange error with 5.4 random generator on old compiler
- From: Mouse <mouse@...>
- Date: Fri, 2 Dec 2022 09:13:11 -0500 (EST)
>> I suspect the problem is the egcs-1.1.2 preprocessor not
>> understanding long longs, but I haven't investigated [...]
> That's quite likely. In C89, the preprocessor works with long, not
> long long.
I don't think it's quite C89, but I'm not sure.
> It is weird that it does not accept a macro defined by the compiler
> itself (LUA_MAXUNSIGNED is defined as ULLONG_MAX), but that is
No, LUA_MAXUNSIGNED is (-0x8000000000000000) - I found the include
files don't define ULLONG_MAX, even though the compiler does in fact
support long long (both signed and unsigned).
I may be pushing the envelope a bit, trying to use 64-bit integers on a
system where the include files don't define limits for them.
/~\ The ASCII Mouse
\ / Ribbon Campaign
X Against HTML email@example.com
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B