HomePhabricator

Merge #14513: Avoid 1 << 31 (UB) in calculation of…

Description

Merge #14513: Avoid 1 << 31 (UB) in calculation of SEQUENCE_LOCKTIME_DISABLE_FLAG

Summary:
PR14513 backport https://github.com/bitcoin/bitcoin/pull/14513/files
bc60c615a5 Avoid 1 << 31 (UB) in calculation of SEQUENCE_LOCKTIME_DISABLE_FLAG (practicalswift)

Pull request description:

Avoid `1 << 31` (UB) in calculation of `SEQUENCE_LOCKTIME_DISABLE_FLAG`.

Context: https://github.com/bitcoin/bitcoin/pull/14510#issuecomment-431153707

Test Plan: make check

Reviewers: Fabien, #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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