aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-08-23 03:25:08 +0800
committerGitHub <noreply@github.com>2016-08-23 03:25:08 +0800
commit7183658c16e26a5405a35ee51f8ffed89b4f1896 (patch)
tree71319d0691982c4b4be5a217ef2c0690321baf8a
parent0d736fde6d1e04f02bb36183906b5e522aab8725 (diff)
parentcc0bc9b908b312bf0f1a14da71dd33d45e3001c8 (diff)
downloaddexon-solidity-7183658c16e26a5405a35ee51f8ffed89b4f1896.tar.gz
dexon-solidity-7183658c16e26a5405a35ee51f8ffed89b4f1896.tar.zst
dexon-solidity-7183658c16e26a5405a35ee51f8ffed89b4f1896.zip
Merge pull request #926 from chriseth/pushasm
Explicitly specify length of push data for assembly output.
-rw-r--r--libevmasm/Assembly.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/Assembly.cpp b/libevmasm/Assembly.cpp
index 2024b1e9..c7822819 100644
--- a/libevmasm/Assembly.cpp
+++ b/libevmasm/Assembly.cpp
@@ -123,7 +123,7 @@ ostream& Assembly::streamAsm(ostream& _out, string const& _prefix, StringMap con
_out << " " << instructionInfo(i.instruction()).name << "\t" << i.getJumpTypeAsString();
break;
case Push:
- _out << " PUSH " << hex << i.data();
+ _out << " PUSH" << dec << max<unsigned>(1, dev::bytesRequired(i.data())) << " 0x" << hex << i.data();
break;
case PushString:
_out << " PUSH \"" << m_strings.at((h256)i.data()) << "\"";