aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2018-10-19 18:45:28 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2018-10-19 18:52:42 -0700
commitb14db5abab405a708f0166293f1ea12222a6bf03 (patch)
tree9bb2e738e9ce195d68102662e078c40e2a43393c /src
parent8010ded6da56842c09b14665343cd189d7e08401 (diff)
parentbc60c615a529728986ffdb890faec6e241b61536 (diff)
downloadbitcoin-b14db5abab405a708f0166293f1ea12222a6bf03.tar.xz
Merge #14513: Avoid 1 << 31 (UB) in calculation of SEQUENCE_LOCKTIME_DISABLE_FLAG
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 Tree-SHA512: bdb4a913c6a82ff1a455ba67d3351f6408ff4116574329361644b483fea96b801fdc5c5659233856b591cd3a46ec669d3b5b438553e4240d7099c560eae2e2ae
Diffstat (limited to 'src')
-rw-r--r--src/primitives/transaction.h2
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,