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

btf: fix writing out signed enums #1155

Merged
merged 1 commit into from
Oct 10, 2023
Merged

Conversation

lmb
Copy link
Collaborator

@lmb lmb commented Oct 5, 2023

The formatter currently doesn't do sign conversion when writing out enum values. This means that negative signed enum values end up with large unsigned values. Fix this by doing correct sign conversion.

The formatter currently doesn't do sign conversion when writing
out enum values. This means that negative signed enum values
end up with large unsigned values. Fix this by doing correct
sign conversion.

Signed-off-by: Lorenz Bauer <lmb@isovalent.com>
@lmb lmb requested a review from rgo3 October 5, 2023 16:26
@lmb lmb merged commit 23be709 into cilium:main Oct 10, 2023
12 checks passed
@lmb lmb deleted the btf-format-signed-enum branch October 10, 2023 09:07
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.

None yet

2 participants