diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-02-23 08:10:42 +0100 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-02-23 08:10:42 +0100 |
commit | 2736c9e05ebd71f2eeab490de7f9fba9ea8b4169 (patch) | |
tree | 2288814a29ae4c38f18fdd8e594e82541879db47 /src/wallet/test | |
parent | aae64a21ba25ca86fe2bbb581681dc20d613fb44 (diff) |
Avoid unintentional unsigned integer wraparounds in tests
Diffstat (limited to 'src/wallet/test')
-rw-r--r-- | src/wallet/test/accounting_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/test/accounting_tests.cpp b/src/wallet/test/accounting_tests.cpp index cafd69d075..e6510cc214 100644 --- a/src/wallet/test/accounting_tests.cpp +++ b/src/wallet/test/accounting_tests.cpp @@ -82,7 +82,7 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade) wtx.mapValue["comment"] = "y"; { CMutableTransaction tx(*wtx.tx); - --tx.nLockTime; // Just to change the hash :) + ++tx.nLockTime; // Just to change the hash :) wtx.SetTx(MakeTransactionRef(std::move(tx))); } pwalletMain->AddToWallet(wtx); @@ -92,7 +92,7 @@ BOOST_AUTO_TEST_CASE(acc_orderupgrade) wtx.mapValue["comment"] = "x"; { CMutableTransaction tx(*wtx.tx); - --tx.nLockTime; // Just to change the hash :) + ++tx.nLockTime; // Just to change the hash :) wtx.SetTx(MakeTransactionRef(std::move(tx))); } pwalletMain->AddToWallet(wtx); |