about summary refs log tree commit diff
path: root/Src/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/math.c')
-rw-r--r--Src/math.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/math.c b/Src/math.c
index 1607d4472..e0e13ee35 100644
--- a/Src/math.c
+++ b/Src/math.c
@@ -876,6 +876,8 @@ mathevall(char *s, int prek, char **ep)
     ptr = s;
     sp = -1;
     unary = 1;
+    stack[0].val.type = MN_INTEGER;
+    stack[0].val.u.l = 0;
     mathparse(prek);
     *ep = ptr;
     DPUTS(!errflag && sp,