diff options
| author | practicalswift <[email protected]> | 2018-10-18 23:12:35 +0200 |
|---|---|---|
| committer | practicalswift <[email protected]> | 2018-10-18 23:14:20 +0200 |
| commit | bc60c615a529728986ffdb890faec6e241b61536 (patch) | |
| tree | fe6d9fca47cfdefecf224b4ca38bbdd8f7bbadcb /src/primitives/transaction.h | |
| parent | Merge #14496: build: Pin to specific versions of Python packages we install f... (diff) | |
| download | discoin-bc60c615a529728986ffdb890faec6e241b61536.tar.xz discoin-bc60c615a529728986ffdb890faec6e241b61536.zip | |
Avoid 1 << 31 (UB) in calculation of SEQUENCE_LOCKTIME_DISABLE_FLAG
Diffstat (limited to 'src/primitives/transaction.h')
| -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 6d8b530f6..0f834eb8c 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, |