We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfe025f commit a2bc330Copy full SHA for a2bc330
src/test/fuzz/feefrac.cpp
@@ -220,9 +220,9 @@ FUZZ_TARGET(feefrac_mul_div)
220
assert(res == res_fee);
221
222
// Compare approximately with CFeeRate.
223
- if (mul64 <= std::numeric_limits<int64_t>::max() / 1000 &&
224
- mul64 >= std::numeric_limits<int64_t>::min() / 1000 &&
225
- quot_abs <= arith_uint256{std::numeric_limits<int64_t>::max() / 1000}) {
+ if (mul64 < std::numeric_limits<int64_t>::max() / 1000 &&
+ mul64 > std::numeric_limits<int64_t>::min() / 1000 &&
+ quot_abs < arith_uint256{std::numeric_limits<int64_t>::max() / 1000}) {
226
CFeeRate feerate(mul64, (uint32_t)div);
227
CAmount feerate_fee{feerate.GetFee(mul32)};
228
auto allowed_gap = static_cast<int64_t>(mul32 / 1000 + 3 + round_down);
0 commit comments