Fixed incorrect handling of the modulo operation
This commit is contained in:
+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