refactor: use braced init for integer constants instead of c style casts

This commit is contained in:
Pasta
2021-12-18 12:50:58 -05:00
committed by pasta
parent 3f8591d46b
commit f2fc03ec85
23 changed files with 47 additions and 47 deletions

View File

@@ -2123,7 +2123,7 @@ bool DescriptorScriptPubKeyMan::TopUp(unsigned int size)
if (size > 0) {
target_size = size;
} else {
target_size = std::max(gArgs.GetIntArg("-keypool", DEFAULT_KEYPOOL_SIZE), (int64_t) 1);
target_size = std::max(gArgs.GetIntArg("-keypool", DEFAULT_KEYPOOL_SIZE), int64_t{1});
}
// Calculate the new range_end