aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-05-04 10:14:12 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-05-18 07:13:25 +0200
commitfafd121026c4f1e25d498983e4f88c119516552b (patch)
tree306dd432b7e300b526bc546ff5b81b2941b899ca /src/test/fuzz
parentc8571486364d6e9ca8c86bd1c81e230ca64f8904 (diff)
refactor: Make CFeeRate constructor architecture-independent
Diffstat (limited to 'src/test/fuzz')
-rw-r--r--src/test/fuzz/fee_rate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/fuzz/fee_rate.cpp b/src/test/fuzz/fee_rate.cpp
index 2955213635..dff0e58000 100644
--- a/src/test/fuzz/fee_rate.cpp
+++ b/src/test/fuzz/fee_rate.cpp
@@ -20,8 +20,8 @@ FUZZ_TARGET(fee_rate)
const CFeeRate fee_rate{satoshis_per_k};
(void)fee_rate.GetFeePerK();
- const size_t bytes = fuzzed_data_provider.ConsumeIntegral<size_t>();
- if (!MultiplicationOverflow(static_cast<int64_t>(bytes), satoshis_per_k) && bytes <= static_cast<uint64_t>(std::numeric_limits<int64_t>::max())) {
+ const auto bytes = fuzzed_data_provider.ConsumeIntegral<uint32_t>();
+ if (!MultiplicationOverflow(int64_t{bytes}, satoshis_per_k)) {
(void)fee_rate.GetFee(bytes);
}
(void)fee_rate.ToString();