Skip to content

Commit 6a1ad7e

Browse files
committed
Fix formatting hex strings in isoltest update
1 parent 289fc7a commit 6a1ad7e

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)