From 47d37b12a3050aa90a9aa7c6e379e46cb6b94eeb Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 3 Nov 2014 12:14:06 +0100 Subject: [PATCH] Bugfix: Swap before mod and div. --- solidityCompiler.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solidityCompiler.cpp b/solidityCompiler.cpp index e08605110..e024043e4 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());