aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-10-26 08:10:55 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2016-10-26 08:10:55 +0800
commit5a981b59c3519257027a107898c06693c126c7b5 (patch)
tree43256e05fe6a4530bd8c11983a59dc4b6c984ca2
parent4f1b5d26f7942117b44f199b0e73ce648b90bafb (diff)
downloaddexon-solidity-5a981b59c3519257027a107898c06693c126c7b5.tar
dexon-solidity-5a981b59c3519257027a107898c06693c126c7b5.tar.gz
dexon-solidity-5a981b59c3519257027a107898c06693c126c7b5.tar.bz2
dexon-solidity-5a981b59c3519257027a107898c06693c126c7b5.tar.lz
dexon-solidity-5a981b59c3519257027a107898c06693c126c7b5.tar.xz
dexon-solidity-5a981b59c3519257027a107898c06693c126c7b5.tar.zst
dexon-solidity-5a981b59c3519257027a107898c06693c126c7b5.zip
LLL: replace (1 0 sub) with literal value
-rw-r--r--liblll/CodeFragment.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/liblll/CodeFragment.cpp b/liblll/CodeFragment.cpp
index 9dcac845..02351c3f 100644
--- a/liblll/CodeFragment.cpp
+++ b/liblll/CodeFragment.cpp
@@ -547,9 +547,7 @@ void CodeFragment::constructOperation(sp::utree const& _t, CompilerState& _s)
requireDeposit(0, 1);
m_asm.append(code[0].m_asm, 1);
- m_asm.append((u256)1);
- m_asm.append((u256)0);
- m_asm.append(Instruction::SUB);
+ m_asm.append(bigint(u256(0) - 1);
m_asm.append(Instruction::SUB);
}
else if (us == "SEQ")