From f2fc03ec856d7d19a20c482514350cced38f9504 Mon Sep 17 00:00:00 2001 From: Pasta Date: Sat, 18 Dec 2021 12:50:58 -0500 Subject: refactor: use braced init for integer constants instead of c style casts --- src/bench/coin_selection.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bench/coin_selection.cpp') diff --git a/src/bench/coin_selection.cpp b/src/bench/coin_selection.cpp index d02ddff37d..087e1442fe 100644 --- a/src/bench/coin_selection.cpp +++ b/src/bench/coin_selection.cpp @@ -99,9 +99,9 @@ static CAmount make_hard_case(int utxos, std::vector& utxo_pool) utxo_pool.clear(); CAmount target = 0; for (int i = 0; i < utxos; ++i) { - target += (CAmount)1 << (utxos+i); - add_coin((CAmount)1 << (utxos+i), 2*i, utxo_pool); - add_coin(((CAmount)1 << (utxos+i)) + ((CAmount)1 << (utxos-1-i)), 2*i + 1, utxo_pool); + target += CAmount{1} << (utxos+i); + add_coin(CAmount{1} << (utxos+i), 2*i, utxo_pool); + add_coin((CAmount{1} << (utxos+i)) + (CAmount{1} << (utxos-1-i)), 2*i + 1, utxo_pool); } return target; } -- cgit v1.2.3