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

Clarify the intention of strange condition #1652

Merged
merged 1 commit into from Feb 20, 2023

Conversation

Kixunil
Copy link
Collaborator

@Kixunil Kixunil commented Feb 20, 2023

It may not be obvious why the condition in push_bytes module checks for negation of 16 and 32 bit architectures rather than 64 bit. This adds a comment about it being conservative.

Addresses #1190 (comment)

It may not be obvious why the condition in `push_bytes` module checks
for negation of 16 and 32 bit architectures rather than 64 bit. This
adds a comment about it being conservative.
@Kixunil Kixunil added code quality Makes code easier to understand and less likely to lead to problems trivial Obvious, easy and quick to review (few lines or doc-only...) labels Feb 20, 2023
@Kixunil Kixunil added this to the 0.30.0 milestone Feb 20, 2023
Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK d83739a

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK d83739a

@apoelstra apoelstra merged commit 483605a into rust-bitcoin:master Feb 20, 2023
@Kixunil Kixunil deleted the push_bytes_clarify branch February 21, 2023 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Makes code easier to understand and less likely to lead to problems trivial Obvious, easy and quick to review (few lines or doc-only...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants