aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/AssemblyItem.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-11-11 23:35:13 +0800
committerchriseth <c@ethdev.com>2016-11-16 21:37:19 +0800
commitcb000a55328d0d1980f2a645e06d4f125ef89e47 (patch)
tree92571f6f4cdd17185d19e12f5ac243c3b59c76b7 /libevmasm/AssemblyItem.cpp
parent390ba085b63e3968b555eeab0ddf8ef429e7c0ee (diff)
downloaddexon-solidity-cb000a55328d0d1980f2a645e06d4f125ef89e47.tar.gz
dexon-solidity-cb000a55328d0d1980f2a645e06d4f125ef89e47.tar.zst
dexon-solidity-cb000a55328d0d1980f2a645e06d4f125ef89e47.zip
Fix setting the tag.
Diffstat (limited to 'libevmasm/AssemblyItem.cpp')
-rw-r--r--libevmasm/AssemblyItem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libevmasm/AssemblyItem.cpp b/libevmasm/AssemblyItem.cpp
index bc8c87aa..7bd93eaf 100644
--- a/libevmasm/AssemblyItem.cpp
+++ b/libevmasm/AssemblyItem.cpp
@@ -46,7 +46,7 @@ pair<size_t, size_t> AssemblyItem::splitForeignPushTag() const
void AssemblyItem::setPushTagSubIdAndTag(size_t _subId, size_t _tag)
{
assertThrow(m_type == PushTag || m_type == Tag, Exception, "");
- setData(_tag + ((u256(_subId) + 1) << 64));
+ setData(_tag + (u256(_subId + 1) << 64));
}
unsigned AssemblyItem::bytesRequired(unsigned _addressLength) const