Skip to content

Commit

Permalink
Fix formatting hex strings in isoltest update
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Jul 13, 2020
1 parent 289fc7a commit 6a1ad7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/libsolidity/util/BytesUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

#include <liblangutil/Common.h>

#include <libsolutil/CommonData.h>
#include <libsolutil/StringUtils.h>

#include <boost/algorithm/string.hpp>
Expand Down Expand Up @@ -198,8 +199,7 @@ string BytesUtils::formatString(bytes const& _bytes, size_t _cutOff)
if (isprint(v))
os << v;
else
os << "\\x" << setw(2) << setfill('0') << hex << v;

os << "\\x" << toHex(v);
}
}
os << "\"";
Expand Down

0 comments on commit 6a1ad7e

Please sign in to comment.