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

Typed enums with an enumeration constant default to Int instead of the enum type #80

Closed
d0c-s4vage opened this issue Sep 30, 2019 · 0 comments · Fixed by #81
Closed

Comments

@d0c-s4vage
Copy link
Owner

d0c-s4vage commented Sep 30, 2019

E.g.

enum <WORD> tagID {
    M_TAG0, // should be 0
    M_TAG1 = 0xff01,
    M_TAG2,
    M_TAG3,
};
  • M_TAG0 is assigned the correct value UShort(0 [0000])
  • M_TAG1 is assigned the incorrect value Int(65281 [0000ff01])
  • All enum values after M_TAG1 have an incorrect type of Int

This was opened due to #78

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

Successfully merging a pull request may close this issue.

1 participant