diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-04-09 15:28:17 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-04-09 15:28:22 +0200 |
commit | facf5a494708df755a15d63d339412201512e13f (patch) | |
tree | ca7b84a6dc4116ff88aa870787c513875b2226f6 | |
parent | fa2da2cb607ba359231fccc9635abe7c8616de56 (diff) |
[amount] tests: Fix off-by-one mistake
-rw-r--r-- | src/test/amount_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/amount_tests.cpp b/src/test/amount_tests.cpp index c65646474d..fd6f88b366 100644 --- a/src/test/amount_tests.cpp +++ b/src/test/amount_tests.cpp @@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE(GetFeeTest) BOOST_CHECK(CFeeRate(CAmount(26), 789) == CFeeRate(32)); BOOST_CHECK(CFeeRate(CAmount(27), 789) == CFeeRate(34)); // Maximum size in bytes, should not crash - CFeeRate(MAX_MONEY, (std::numeric_limits<size_t>::max() >> 1) - 1).GetFeePerK(); + CFeeRate(MAX_MONEY, std::numeric_limits<size_t>::max() >> 1).GetFeePerK(); } BOOST_AUTO_TEST_SUITE_END() |