mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix formatting hex strings in isoltest update
This commit is contained in:
parent
289fc7a9d0
commit
6a1ad7e59c
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
#include <liblangutil/Common.h>
|
#include <liblangutil/Common.h>
|
||||||
|
|
||||||
|
#include <libsolutil/CommonData.h>
|
||||||
#include <libsolutil/StringUtils.h>
|
#include <libsolutil/StringUtils.h>
|
||||||
|
|
||||||
#include <boost/algorithm/string.hpp>
|
#include <boost/algorithm/string.hpp>
|
||||||
@ -198,8 +199,7 @@ string BytesUtils::formatString(bytes const& _bytes, size_t _cutOff)
|
|||||||
if (isprint(v))
|
if (isprint(v))
|
||||||
os << v;
|
os << v;
|
||||||
else
|
else
|
||||||
os << "\\x" << setw(2) << setfill('0') << hex << v;
|
os << "\\x" << toHex(v);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
os << "\"";
|
os << "\"";
|
||||||
|
Loading…
Reference in New Issue
Block a user