aboutsummaryrefslogtreecommitdiff
path: root/src/test/sighash_tests.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-12-04 13:16:30 +0100
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2018-12-04 19:55:04 +0200
commitcf4b0327ed92ca8a1533cdf6c2b0015fd9b56397 (patch)
tree1ac306ee221382b3ec917a0fba640382a8fcb1d2 /src/test/sighash_tests.cpp
parent6b82fc59eb19004e54f910261a40d5e1b9e44b42 (diff)
downloadbitcoin-cf4b0327ed92ca8a1533cdf6c2b0015fd9b56397.tar.xz
Use std::numeric_limits<UNSIGNED>::max()) instead of (UNSIGNED)-1
Diffstat (limited to 'src/test/sighash_tests.cpp')
-rw-r--r--src/test/sighash_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/sighash_tests.cpp b/src/test/sighash_tests.cpp
index c329844341..773204a00c 100644
--- a/src/test/sighash_tests.cpp
+++ b/src/test/sighash_tests.cpp
@@ -105,7 +105,7 @@ void static RandomTransaction(CMutableTransaction &tx, bool fSingle) {
txin.prevout.hash = InsecureRand256();
txin.prevout.n = InsecureRandBits(2);
RandomScript(txin.scriptSig);
- txin.nSequence = (InsecureRandBool()) ? InsecureRand32() : (unsigned int)-1;
+ txin.nSequence = (InsecureRandBool()) ? InsecureRand32() : std::numeric_limits<uint32_t>::max();
}
for (int out = 0; out < outs; out++) {
tx.vout.push_back(CTxOut());