diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-10-18 23:12:35 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-10-18 23:14:20 +0200 |
commit | bc60c615a529728986ffdb890faec6e241b61536 (patch) | |
tree | fe6d9fca47cfdefecf224b4ca38bbdd8f7bbadcb /src/primitives | |
parent | 3036faf51a182d8ab8675089c8c24521629ea547 (diff) |
Avoid 1 << 31 (UB) in calculation of SEQUENCE_LOCKTIME_DISABLE_FLAG
Diffstat (limited to 'src/primitives')
-rw-r--r-- | src/primitives/transaction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 6d8b530f69..0f834eb8c1 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -73,7 +73,7 @@ public: /* Below flags apply in the context of BIP 68*/ /* If this flag set, CTxIn::nSequence is NOT interpreted as a * relative lock-time. */ - static const uint32_t SEQUENCE_LOCKTIME_DISABLE_FLAG = (1 << 31); + static const uint32_t SEQUENCE_LOCKTIME_DISABLE_FLAG = (1U << 31); /* If CTxIn::nSequence encodes a relative lock-time and this flag * is set, the relative lock-time has units of 512 seconds, |