diff options
author | chriseth <chris@ethereum.org> | 2018-12-06 05:11:31 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-12-06 05:51:49 +0800 |
commit | bc6ddbdd09860542061baed8df993cb3dafaa406 (patch) | |
tree | 086050790c74a5d75eed165a545df11f9b554619 /libdevcore/StringUtils.h | |
parent | e8455c2a6d33abbebfe678fdaa1728311838e21a (diff) | |
download | dexon-solidity-bc6ddbdd09860542061baed8df993cb3dafaa406.tar.gz dexon-solidity-bc6ddbdd09860542061baed8df993cb3dafaa406.tar.zst dexon-solidity-bc6ddbdd09860542061baed8df993cb3dafaa406.zip |
Remove `w` parameter for toHex.
Diffstat (limited to 'libdevcore/StringUtils.h')
-rw-r--r-- | libdevcore/StringUtils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdevcore/StringUtils.h b/libdevcore/StringUtils.h index 43aa4bd1..64044cb2 100644 --- a/libdevcore/StringUtils.h +++ b/libdevcore/StringUtils.h @@ -111,7 +111,7 @@ inline std::string formatNumberReadable( // 0x100 yields 2**8 (N is 1 and redundant) if (v == 1) return "2**" + std::to_string(i * 8); - return toHex(toCompactBigEndian(v), 2, prefix, hexcase) + + return toHex(toCompactBigEndian(v), prefix, hexcase) + " * 2**" + std::to_string(i * 8); } @@ -125,12 +125,12 @@ inline std::string formatNumberReadable( // 0xFF yields 2**8 - 1 (v is 0 in that case) if (v == 0) return "2**" + std::to_string(i * 8) + " - 1"; - return toHex(toCompactBigEndian(T(v + 1)), 2, prefix, hexcase) + + return toHex(toCompactBigEndian(T(v + 1)), prefix, hexcase) + " * 2**" + std::to_string(i * 8) + " - 1"; } - std::string str = toHex(toCompactBigEndian(_value), 2, prefix, hexcase); + std::string str = toHex(toCompactBigEndian(_value), prefix, hexcase); if (_useTruncation) { // return as interior-truncated hex. |