aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-10-18 23:12:35 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-10-18 23:14:20 +0200
commitbc60c615a529728986ffdb890faec6e241b61536 (patch)
treefe6d9fca47cfdefecf224b4ca38bbdd8f7bbadcb /src
parent3036faf51a182d8ab8675089c8c24521629ea547 (diff)
Avoid 1 << 31 (UB) in calculation of SEQUENCE_LOCKTIME_DISABLE_FLAG
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,