Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enum problem #957

Open
LADSoft opened this issue Oct 1, 2023 · 0 comments
Open

enum problem #957

LADSoft opened this issue Oct 1, 2023 · 0 comments

Comments

@LADSoft
Copy link
Owner

LADSoft commented Oct 1, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant