Fixed incorrect handling of the modulo operation
This commit is contained in:
1 parent
93da1771f4
commit
f651fcdb4c
1 file changed
+1
-1
+1
-1
@@ -24,7 +24,7 @@ int BaseCalculator::calculate(const Operation& op)
|
||||
break;
|
||||
|
||||
case OpType::Modulo:
|
||||
result += op.a % op.b;
|
||||
result = op.a % op.b;
|
||||
break;
|
||||
|
||||
case OpType::Special:
|
||||
|
||||
Reference in new issue
Block a user