mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
convert individual numbers to hex
Signed-off-by: VoR0220 <rj@erisindustries.com>
This commit is contained in:
parent
9dda8f7d84
commit
9869f1a78b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user