aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-03 19:14:06 +0800
committerChristian <c@ethdev.com>2014-11-03 19:23:53 +0800
commit47d37b12a3050aa90a9aa7c6e379e46cb6b94eeb (patch)
tree2826053a262103470229dbf9f9645f8b87f46aef
parent07d08e3af3afb99014cec91d39ce0ca36d710517 (diff)
downloaddexon-solidity-47d37b12a3050aa90a9aa7c6e379e46cb6b94eeb.tar
dexon-solidity-47d37b12a3050aa90a9aa7c6e379e46cb6b94eeb.tar.gz
dexon-solidity-47d37b12a3050aa90a9aa7c6e379e46cb6b94eeb.tar.bz2
dexon-solidity-47d37b12a3050aa90a9aa7c6e379e46cb6b94eeb.tar.lz
dexon-solidity-47d37b12a3050aa90a9aa7c6e379e46cb6b94eeb.tar.xz
dexon-solidity-47d37b12a3050aa90a9aa7c6e379e46cb6b94eeb.tar.zst
dexon-solidity-47d37b12a3050aa90a9aa7c6e379e46cb6b94eeb.zip
Bugfix: Swap before mod and div.
-rw-r--r--solidityCompiler.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/solidityCompiler.cpp b/solidityCompiler.cpp
index e0860511..e024043e 100644
--- a/solidityCompiler.cpp
+++ b/solidityCompiler.cpp
@@ -193,7 +193,9 @@ BOOST_AUTO_TEST_CASE(arithmetics)
byte(eth::Instruction::SWAP1),
byte(eth::Instruction::SUB),
byte(eth::Instruction::ADD),
+ byte(eth::Instruction::SWAP1),
byte(eth::Instruction::MOD),
+ byte(eth::Instruction::SWAP1),
byte(eth::Instruction::DIV),
byte(eth::Instruction::MUL)});
BOOST_CHECK_EQUAL_COLLECTIONS(code.begin(), code.end(), expectation.begin(), expectation.end());