diff options
-rw-r--r-- | Compiler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Compiler.cpp b/Compiler.cpp index f19dd3f7..ba1dcfb6 100644 --- a/Compiler.cpp +++ b/Compiler.cpp @@ -336,9 +336,11 @@ void ExpressionCompiler::appendArithmeticOperatorCode(Token::Value _operator, Ty append(eth::Instruction::MUL); break; case Token::DIV: + append(eth::Instruction::SWAP1); append(isSigned ? eth::Instruction::SDIV : eth::Instruction::DIV); break; case Token::MOD: + append(eth::Instruction::SWAP1); append(isSigned ? eth::Instruction::SMOD : eth::Instruction::MOD); break; default: |