summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
Diffstat (limited to 'shell')
-rw-r--r--shell/math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/math.c b/shell/math.c
index 6784eee..0b30e08 100644
--- a/shell/math.c
+++ b/shell/math.c
@@ -706,7 +706,7 @@ evaluate_string(arith_state_t *math_state, const char *expr)
char *end;
numstackptr->var_name = NULL;
errno = 0;
- end = (char*) expr; /* separate variable to go on stack */
+ /* code is smaller compared to using &expr here: */
numstackptr->val = strto_arith_t(expr, &end);
expr = end;
dbg("[%d] val:%lld", (int)(numstackptr - numstack), numstackptr->val);