aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/inlineasm/AsmPrinter.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-02-14 20:59:15 +0800
committerchriseth <c@ethdev.com>2017-02-14 22:41:25 +0800
commitca71b7624db6c731670ddf69873dd9f0c8c6ccd2 (patch)
tree2381ed6d7ab8324411627288de5bca208ba8c4b5 /libsolidity/inlineasm/AsmPrinter.cpp
parent80f72437864301562b485cb380eddcea5e6e575f (diff)
downloaddexon-solidity-ca71b7624db6c731670ddf69873dd9f0c8c6ccd2.tar.gz
dexon-solidity-ca71b7624db6c731670ddf69873dd9f0c8c6ccd2.tar.zst
dexon-solidity-ca71b7624db6c731670ddf69873dd9f0c8c6ccd2.zip
Review changes.
Diffstat (limited to 'libsolidity/inlineasm/AsmPrinter.cpp')
-rw-r--r--libsolidity/inlineasm/AsmPrinter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/inlineasm/AsmPrinter.cpp b/libsolidity/inlineasm/AsmPrinter.cpp
index d829a416..66cf39c0 100644
--- a/libsolidity/inlineasm/AsmPrinter.cpp
+++ b/libsolidity/inlineasm/AsmPrinter.cpp
@@ -71,11 +71,11 @@ string AsmPrinter::operator()(assembly::Literal const& _literal)
{
ostringstream o;
o << std::hex << setfill('0') << setw(2) << unsigned(c);
- out += "0x" + o.str();
+ out += "\\x" + o.str();
}
else
out += c;
- return out;
+ return "\"" + out + "\"";
}
string AsmPrinter::operator()(assembly::Identifier const& _identifier)