HomePhabricator

Fix signed shift by 31 bits

Description

Fix signed shift by 31 bits

Summary: Shifting a signed integer by 31 bits is undefined behavior.

Test Plan:

arc lint src/test/op_reversebytes_tests.cpp

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D7141

Details

Provenance
jasonbcoxAuthored on Aug 6 2020, 17:59
abc-botPushed on Aug 6 2020, 18:02
Reviewer
Restricted Project
Differential Revision
D7141: Fix signed shift by 31 bits
Parents
rABC1b3695b519a0: Allow large integers to be used in maxtries
Branches
Unknown
Tags
Unknown