Skip to content

refactor: Make 64-bit shift explicit - #26252

Merged
maflcko merged 1 commit into
bitcoin:masterfrom
hebasto:221004-shift
Oct 5, 2022
Merged

maflcko merged 1 commit into
bitcoin:masterfrom
hebasto:221004-shift

Conversation

@hebasto

@hebasto hebasto commented Oct 4, 2022

Copy link
Copy Markdown
Member

std::array::at() expects an argument of the size_t type. This PR avoids implicit type conversion (for both 64-bit and 32-bit systems).

Also it enables MSVC warning C4334 for all codebase.

@hebasto

hebasto commented Oct 4, 2022

Copy link
Copy Markdown
Member Author

cc @sipa as an author of src/bech32.cpp (#11167).

@DrahtBot

DrahtBot commented Oct 4, 2022 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

No conflicts as of last run.

@maflcko maflcko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK 5c5b85d 🚎

Show signature

Signature:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

ACK 5c5b85d0e7e7bb6eea47be60e20140b9fa9fa745 🚎
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCgAdFiEE+rVPoUahrI9sLGYTzit1aX5ppUgFAlwqrYAACgkQzit1aX5p
pUjVnAv9FQwGec5u0nG1WliXrLEgomK9sscEUIZ30DPpvI2ILk0Rzz/jhwd8mu30
rj+KOPnedU705XpjhB5BJ57eihBXYQBkCBN6cV0jMs3GsfwKgZqmNMCH9rdDgEWB
HxDi+4TW862m9svCZBDdx7V4atS7/VdRX5yA9v1IFaydqF6JFFgHGE1wm/oVH3sv
Kci50Lf+iRJxwBb1ejG8kHqbH5Q0SlPTfPChL4YmXC+yd2jfNF4DFzgMfrYfI822
lOjN5oyTiYWKeXBAVp6taEnlP/DyIuFvgozhoT27j578IwviivxSERL9RGAo3zPA
HrdGYZqx1F8CxQ1EhzbJltIQeWowRinlnJZ7ATPs0Glb0eUkWJtNZn+wRVvSkmb3
b9xWM73kT/5ilbHWEpJFNMNaVDJOWvWS+DJQkudr6zoS26go4u6bcUthKVFYOtvu
F0f2CTDkSqBm8lbNLOMIYTGFLfP4Kih26xYU2Edq4ope5jvU6ICLVGSL5Y09XzxV
9y0qdut2
=/pMJ
-----END PGP SIGNATURE-----

@jonatack jonatack left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code review ACK 5c5b85d

@maflcko
maflcko merged commit 5e82b9b into bitcoin:master Oct 5, 2022
@hebasto
hebasto deleted the 221004-shift branch October 5, 2022 14:32
@bitcoin bitcoin locked and limited conversation to collaborators Oct 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants