aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/eval.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/eval.cpp b/gui/eval.cpp
index d4c4f5499c..7798cffaee 100644
--- a/gui/eval.cpp
+++ b/gui/eval.cpp
@@ -167,8 +167,7 @@ void Eval::arith(char op, int *r, int *h) {
*r = (*r) / (*h);
break;
case '%':
- t = (*r) / (*h);
- *r = *r - (t * (*h));
+ *r = (*r) % (*h);
break;
}
}