Fixed incorrect handling of the modulo operation

This commit is contained in:
2026-04-02 00:59:27 +03:00
parent 93da1771f4
commit f651fcdb4c
+1 -1
View File
@@ -24,7 +24,7 @@ int BaseCalculator::calculate(const Operation& op)
break; break;
case OpType::Modulo: case OpType::Modulo:
result += op.a % op.b; result = op.a % op.b;
break; break;
case OpType::Special: case OpType::Special: