LADSoft / OrangeC

OrangeC Compiler And Tool Chain
http://ladsoft.tripod.com/orange_c_compiler.html
Other
284 stars 39 forks source link

enum problem #957

Open LADSoft opened 9 months ago

LADSoft commented 9 months ago

the compiler header c.h, the enum _tokentypes declares TT_DECLARE as 0x80000000 (which is int_min)

in lex.c the use of this definition had to be cast to unsigned long for clang to compile it

if I change the base type of the enumeration to unsigned long and remove the cast, clang/msvc are fine but occ complains about the result being too big to fit in the type.