mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 06:28:31 +01:00
refactor: use braced init for integer constants instead of c style casts
This commit is contained in:
@@ -32,7 +32,7 @@ BOOST_AUTO_TEST_CASE(validation_chainstate_resize_caches)
|
||||
COutPoint outp{txid, 0};
|
||||
newcoin.nHeight = 1;
|
||||
newcoin.out.nValue = InsecureRand32();
|
||||
newcoin.out.scriptPubKey.assign((uint32_t)56, 1);
|
||||
newcoin.out.scriptPubKey.assign(uint32_t{56}, 1);
|
||||
coins_view.AddCoin(outp, std::move(newcoin), false);
|
||||
|
||||
return outp;
|
||||
|
||||
Reference in New Issue
Block a user