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

proxy-types.h: add static_assert to detect int/enum size mismatch #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryanofsky
Copy link
Collaborator

@ryanofsky ryanofsky commented Nov 12, 2024

Add static_assert to detect when an int field is too small to hold an enum value

This catches the bug TheCharlatan pointed out in bitcoin/bitcoin#29409 (comment)

Copy link
Collaborator

@TheCharlatan TheCharlatan left a comment

Choose a reason for hiding this comment

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

lgtm ACK bbc80ab

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.

2 participants