diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-07 22:30:39 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-07 22:30:39 +0800 |
commit | 79886e324902580faa522307ad50ce26350cb59f (patch) | |
tree | 4d0ad98ffca317e54ed5e4942c0f814b9f88c8de /src/mir/mir.cpp | |
parent | 25c42264a5d84a099ae778d83dd5ac110577cde6 (diff) | |
download | mrust-79886e324902580faa522307ad50ce26350cb59f.tar.gz |
MIR Gen Match - Rough bytestring support
Diffstat (limited to 'src/mir/mir.cpp')
-rw-r--r-- | src/mir/mir.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mir/mir.cpp b/src/mir/mir.cpp index dc49efb2..f65c7616 100644 --- a/src/mir/mir.cpp +++ b/src/mir/mir.cpp @@ -24,7 +24,12 @@ namespace MIR { os << (e ? "true" : "false"); ), (Bytes, - os << "[" << e << "]"; + os << "["; + os << ::std::hex; + for(auto v : e) + os << static_cast<unsigned int>(v) << " "; + os << ::std::dec; + os << "]"; ), (StaticString, os << "\"" << e << "\""; |