diff options
author | VoR0220 <rj@erisindustries.com> | 2016-11-22 03:53:53 +0800 |
---|---|---|
committer | VoR0220 <rj@erisindustries.com> | 2016-11-22 03:53:53 +0800 |
commit | 9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad (patch) | |
tree | ed0ab7e6792ab9f472b990ef9dc6fd81a24faa45 | |
parent | 9dda8f7d84d50a974b6de759a543f001803d9028 (diff) | |
download | dexon-solidity-9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad.tar.gz dexon-solidity-9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad.tar.zst dexon-solidity-9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad.zip |
convert individual numbers to hex
Signed-off-by: VoR0220 <rj@erisindustries.com>
-rw-r--r-- | libdevcore/Common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libdevcore/Common.h b/libdevcore/Common.h index dababe79..225f38ac 100644 --- a/libdevcore/Common.h +++ b/libdevcore/Common.h @@ -138,6 +138,7 @@ inline u256 s2u(s256 _u) inline std::ostream& operator<<(std::ostream& os, bytes const& _bytes) { std::ostringstream ss; + ss << std::hex; std::copy(_bytes.begin(), _bytes.end(), std::ostream_iterator<int>(ss, ",")); std::string result = ss.str(); result.pop_back(); |