aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-08-21 21:53:59 +0800
committerGav Wood <i@gavwood.com>2014-08-21 21:53:59 +0800
commit5cdacb1bc1728ef0411f6d6cdb4172bc26dc5fa7 (patch)
tree9bc4b56d3ba1cbf865556535f39053b356a9df7f
parente4e46b07ebcf05bebbb3b1711b843f65268d99bc (diff)
downloaddexon-solidity-5cdacb1bc1728ef0411f6d6cdb4172bc26dc5fa7.tar.gz
dexon-solidity-5cdacb1bc1728ef0411f6d6cdb4172bc26dc5fa7.tar.zst
dexon-solidity-5cdacb1bc1728ef0411f6d6cdb4172bc26dc5fa7.zip
Unambiguous licence.
-rw-r--r--CodeFragment.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/CodeFragment.cpp b/CodeFragment.cpp
index bc7fa615..09f49bc7 100644
--- a/CodeFragment.cpp
+++ b/CodeFragment.cpp
@@ -313,7 +313,7 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s)
++ii;
}
m_asm.append((u256)data.size());
- m_asm.append(Instruction::DUP);
+ m_asm.append(Instruction::DUP1);
m_asm.append(data);
m_asm.append(pos.m_asm, 1);
m_asm.append(Instruction::CODECOPY);
@@ -494,7 +494,7 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s)
requireDeposit(1, 1);
auto subPush = m_asm.appendSubSize(code[0].assembly(ns));
- m_asm.append(Instruction::DUP);
+ m_asm.append(Instruction::DUP1);
if (code.size() == 3)
{
requireDeposit(2, 1);
@@ -502,7 +502,7 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s)
m_asm.append(Instruction::LT);
m_asm.append(Instruction::NOT);
m_asm.append(Instruction::MUL);
- m_asm.append(Instruction::DUP);
+ m_asm.append(Instruction::DUP1);
}
m_asm.append(subPush);
m_asm.append(code[1].m_asm, 1);