mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adding fixes for signedness warnings in libsolutil
This commit is contained in:
@@ -156,14 +156,14 @@ inline std::string formatNumberReadable(
|
||||
if (_useTruncation)
|
||||
{
|
||||
// return as interior-truncated hex.
|
||||
int len = str.size();
|
||||
size_t len = str.size();
|
||||
|
||||
if (len < 24)
|
||||
return str;
|
||||
|
||||
int const initialChars = (prefix == HexPrefix::Add) ? 6 : 4;
|
||||
int const finalChars = 4;
|
||||
int numSkipped = len - initialChars - finalChars;
|
||||
size_t const initialChars = (prefix == HexPrefix::Add) ? 6 : 4;
|
||||
size_t const finalChars = 4;
|
||||
size_t numSkipped = len - initialChars - finalChars;
|
||||
|
||||
return str.substr(0, initialChars) +
|
||||
"...{+" +
|
||||
|
||||
Reference in New Issue
Block a user