Skip to content

Explicitly do not support 16 bit architectures #442

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

Merged

Conversation

tcharding
Copy link
Member

We cast u32 to usize in a bunch of places, this will cause strange behaviour because of truncation on 16 bit architectures.

Add a compile time check to explicitly not support 16 bit architectures.

We cast `u32` to `usize` in a bunch of places, this will cause
strange behaviour because of truncation on 16 bit architectures.

Add a compile time check to explicitly not support 16 bit architectures.
@tcharding tcharding force-pushed the 07-01-pointer-width-check branch from 995f342 to d02c313 Compare July 1, 2022 01:48
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.

utACK d02c313

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 d02c313

@sanket1729 sanket1729 merged commit d524c6d into rust-bitcoin:master Jul 8, 2022
@tcharding tcharding deleted the 07-01-pointer-width-check branch July 12, 2022 02:23
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.

4 participants