aboutsummaryrefslogtreecommitdiff
path: root/gui/eval.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/eval.cpp')
-rw-r--r--gui/eval.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/gui/eval.cpp b/gui/eval.cpp
index 7798cffaee..a2aec6d0d3 100644
--- a/gui/eval.cpp
+++ b/gui/eval.cpp
@@ -33,10 +33,7 @@
namespace GUI {
static bool isdelim(char c) {
- if (strchr(" ;,+-<>/*%^=()", c) || c == 9 || c == '\n' || !c)
- return true;
-
- return false;
+ return strchr(" ;,+-<>/*%^=()", c) != 0 || c == 9 || c == '\n' || !c;
}
Eval::Eval() {
@@ -151,8 +148,6 @@ void Eval::primitive(int *result) {
}
void Eval::arith(char op, int *r, int *h) {
- int t;
-
switch (op) {
case '-':
*r = *r - *h;