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 values with leading zeros #10

Open
cruncher64 opened this issue Nov 15, 2023 · 0 comments
Open

enum values with leading zeros #10

cruncher64 opened this issue Nov 15, 2023 · 0 comments

Comments

@cruncher64
Copy link

There is a nasty issue for enumerations, where the enumeration value is initialzed by an integer with leading zeroes (this will be interpreted as an octal number by the compiler), e.g. for MunitionDescriptorFuse, where MULTIFUNCTION should have the decimal value 100, but the constructor in the source is MULTIFUNCTION(0100, "Multifunction"), which gives you a decimal value of 64. To my knowledge this is also valid for MunitionDescriptorWarhead, I have not searched for other cases, as one has to check the whole SISO-REF-010 enumerations.

@terry-norbraten terry-norbraten transferred this issue from open-dis/opendis7-java Nov 28, 2023
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