Skip to content

Commit 0212a16

Browse files
authored
Merge pull request argotorg#9401 from ethereum/isoltest-update-hex
Fix formatting hex strings in isoltest update
2 parents 289fc7a + 6a1ad7e commit 0212a16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/libsolidity/util/BytesUtils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#include <liblangutil/Common.h>
2424

25+
#include <libsolutil/CommonData.h>
2526
#include <libsolutil/StringUtils.h>
2627

2728
#include <boost/algorithm/string.hpp>
@@ -198,8 +199,7 @@ string BytesUtils::formatString(bytes const& _bytes, size_t _cutOff)
198199
if (isprint(v))
199200
os << v;
200201
else
201-
os << "\\x" << setw(2) << setfill('0') << hex << v;
202-
202+
os << "\\x" << toHex(v);
203203
}
204204
}
205205
os << "\"";

0 commit comments

Comments
 (0)