diff options
author | chriseth <c@ethdev.com> | 2016-08-18 22:37:42 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-08-18 22:37:42 +0800 |
commit | cc0bc9b908b312bf0f1a14da71dd33d45e3001c8 (patch) | |
tree | 0095cece7cba83860772a721272e5c421e222c3c | |
parent | c282ab379aac4a6b14f59a957c6261e2edb8b1ce (diff) | |
download | dexon-solidity-cc0bc9b908b312bf0f1a14da71dd33d45e3001c8.tar.gz dexon-solidity-cc0bc9b908b312bf0f1a14da71dd33d45e3001c8.tar.zst dexon-solidity-cc0bc9b908b312bf0f1a14da71dd33d45e3001c8.zip |
Explicitly specify length of push data for assembly output.
-rw-r--r-- | libevmasm/Assembly.cpp | 2 |
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()) << "\""; |