From 6951657c5926b4b84578119cdd334252a65d53b8 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 3 Nov 2014 12:14:06 +0100 Subject: Bugfix: Swap before mod and div. --- solidityExpressionCompiler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'solidityExpressionCompiler.cpp') diff --git a/solidityExpressionCompiler.cpp b/solidityExpressionCompiler.cpp index d28628fc..83a7b2bb 100644 --- a/solidityExpressionCompiler.cpp +++ b/solidityExpressionCompiler.cpp @@ -212,7 +212,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()); -- cgit v1.2.3