diff options
author | chriseth <c@ethdev.com> | 2015-06-26 00:41:26 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-26 00:41:46 +0800 |
commit | 0f06fd8c2fbb62744e435cb7ae9967e95ade6b2a (patch) | |
tree | 0c5969144f45813588c7d698d14f71ffdb3aaa21 /Assembly.cpp | |
parent | 66a85f0229c8160ab9d1dd3d96ba248afe1cab6e (diff) | |
download | dexon-solidity-0f06fd8c2fbb62744e435cb7ae9967e95ade6b2a.tar.gz dexon-solidity-0f06fd8c2fbb62744e435cb7ae9967e95ade6b2a.tar.zst dexon-solidity-0f06fd8c2fbb62744e435cb7ae9967e95ade6b2a.zip |
Fixed counter modification when appending assemblies.
Diffstat (limited to 'Assembly.cpp')
-rw-r--r-- | Assembly.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Assembly.cpp b/Assembly.cpp index 34ee0596..c96b6f40 100644 --- a/Assembly.cpp +++ b/Assembly.cpp @@ -41,7 +41,7 @@ void Assembly::append(Assembly const& _a) if (i.type() == Tag || i.type() == PushTag) i.setData(i.data() + m_usedTags); else if (i.type() == PushSub || i.type() == PushSubSize) - i.setData(i.data() + m_usedTags); + i.setData(i.data() + m_subs.size()); append(i); } m_deposit = newDeposit; @@ -136,10 +136,10 @@ ostream& Assembly::streamAsm(ostream& _out, string const& _prefix, StringMap con _out << " PUSH [tag" << dec << i.data() << "]"; break; case PushSub: - _out << " PUSH [$" << h256(i.data()).abridged() << "]"; + _out << " PUSH [$" << h256(i.data()).abridgedMiddle() << "]"; break; case PushSubSize: - _out << " PUSH #[$" << h256(i.data()).abridged() << "]"; + _out << " PUSH #[$" << h256(i.data()).abridgedMiddle() << "]"; break; case PushProgramSize: _out << " PUSHSIZE"; |