summaryrefslogtreecommitdiff
path: root/src/mir/mir.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-10-07 22:30:39 +0800
committerJohn Hodge <tpg@mutabah.net>2016-10-07 22:30:39 +0800
commit79886e324902580faa522307ad50ce26350cb59f (patch)
tree4d0ad98ffca317e54ed5e4942c0f814b9f88c8de /src/mir/mir.cpp
parent25c42264a5d84a099ae778d83dd5ac110577cde6 (diff)
downloadmrust-79886e324902580faa522307ad50ce26350cb59f.tar.gz
MIR Gen Match - Rough bytestring support
Diffstat (limited to 'src/mir/mir.cpp')
-rw-r--r--src/mir/mir.cpp7
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 << "\"";