aboutsummaryrefslogtreecommitdiffstats
path: root/libdevcore
diff options
context:
space:
mode:
authorVoR0220 <rj@erisindustries.com>2016-11-22 03:53:53 +0800
committerVoR0220 <rj@erisindustries.com>2016-11-22 03:53:53 +0800
commit9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad (patch)
treeed0ab7e6792ab9f472b990ef9dc6fd81a24faa45 /libdevcore
parent9dda8f7d84d50a974b6de759a543f001803d9028 (diff)
downloaddexon-solidity-9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad.tar
dexon-solidity-9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad.tar.gz
dexon-solidity-9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad.tar.bz2
dexon-solidity-9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad.tar.lz
dexon-solidity-9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad.tar.xz
dexon-solidity-9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad.tar.zst
dexon-solidity-9869f1a78bff6b8d84ed0b08e7beb5d425fa5aad.zip
convert individual numbers to hex
Signed-off-by: VoR0220 <rj@erisindustries.com>
Diffstat (limited to 'libdevcore')
-rw-r--r--libdevcore/Common.h1
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();