diff --git a/tests/fuzz/fuzz-close_tx.c b/tests/fuzz/fuzz-close_tx.c index 58f4a6720..0fd29e5ac 100644 --- a/tests/fuzz/fuzz-close_tx.c +++ b/tests/fuzz/fuzz-close_tx.c @@ -54,7 +54,7 @@ void run(const uint8_t *data, size_t size) if (!(amount_sat_add(&funding, to_us, to_them))) return; /* .. And < max_btc as we assert it's not nonsensical! */ - max = AMOUNT_SAT((u32)WALLY_SATOSHI_PER_BTC * WALLY_BTC_MAX); + max = AMOUNT_SAT((u64)WALLY_SATOSHI_PER_BTC * WALLY_BTC_MAX); if (amount_sat_greater(funding, max)) { funding = max; to_us = amount_sat_div(max, 2);