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

mavgen_java.py: generate_enums: assume all integers to be 64 bits #639

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

TSC21
Copy link
Contributor

@TSC21 TSC21 commented Feb 24, 2022

Fixes #638. Though I wonder if it is acceptable to use a larger data struct by default to enums just because of a single enumeration. Anyway we might eventually have other cases where this will happen.

@TSC21
Copy link
Contributor Author

TSC21 commented Feb 24, 2022

@jillh54 FYI.

@TSC21
Copy link
Contributor Author

TSC21 commented Feb 25, 2022

@peterbarker is this something you can review? Thanks in advance!

@peterbarker
Copy link
Contributor

@TSC21 I haven't really dealt with these bindings much.

Perhaps @len0rd or @magicrub could comment?

@TSC21
Copy link
Contributor Author

TSC21 commented Mar 29, 2022

@len0rd @magicrub any chance you can help move this forward? Thanks!

Copy link
Contributor

@magicrub magicrub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The one line change looks ok, but there's a ton of whitespace changes. They're good changes.. so that's ok.. but still kind of annoying. Anyway, it's likely worth merging.

@peterbarker peterbarker merged commit ad87ee2 into ArduPilot:master Mar 30, 2022
@peterbarker
Copy link
Contributor

Merged, thanks @TSC21 , @magicrub

@rrr6399
Copy link
Contributor

rrr6399 commented Mar 31, 2022

This change breaks everybody's Java code and forces a int cast to the command enum when using it in a command. The large values are related to masks. The longs should only be used for masks.

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 this pull request may close these issues.

[Java generator] error: integer number too large
4 participants