mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
refactor: use braced init for integer constants instead of c style casts
This commit is contained in:
@@ -34,7 +34,7 @@ std::string FormatMoney(const CAmount n)
|
||||
str.erase(str.size()-nTrim, nTrim);
|
||||
|
||||
if (n < 0)
|
||||
str.insert((unsigned int)0, 1, '-');
|
||||
str.insert(uint32_t{0}, 1, '-');
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user