summaryrefslogtreecommitdiff
path: root/Src/math.c
diff options
context:
space:
mode:
authorFrank Terbeck <ft@bewatermyfriend.org>2011-06-02 10:50:35 +0200
committerFrank Terbeck <ft@bewatermyfriend.org>2011-06-02 10:50:35 +0200
commit2438a0e95aa448f0aeda468752444306b44fe7d0 (patch)
tree8477e9c6af360f6a89af13e8cb5f2a4f9c1cff2c /Src/math.c
parentb495ba1e5a3ab1396844490ad8cad17dec23d6c1 (diff)
parent21266db1d9ae433bf1dcb196a4e258c00541b599 (diff)
downloadzsh-2438a0e95aa448f0aeda468752444306b44fe7d0.tar.gz
zsh-2438a0e95aa448f0aeda468752444306b44fe7d0.zip
Merge commit 'zsh-4.3.12' into debian
Diffstat (limited to 'Src/math.c')
-rw-r--r--Src/math.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/math.c b/Src/math.c
index caff06de9..beef74525 100644
--- a/Src/math.c
+++ b/Src/math.c
@@ -46,7 +46,7 @@ mod_export mnumber zero_mnumber;
/*
* The last value we computed: note this isn't cleared
- * until the next computation, unlike unlike yyval.
+ * until the next computation, unlike yyval.
* Everything else is saved and returned to allow recursive calls.
*/
/**/
@@ -1156,7 +1156,8 @@ op(int what)
if (tp & (OP_E2|OP_E2IO)) {
struct mathvalue *mvp = stack + sp + 1;
lv = stack[sp+1].lval;
- push(setmathvar(mvp,c), mvp->lval, 0);
+ c = setmathvar(mvp, c);
+ push(c, mvp->lval, 0);
} else
push(c,NULL, 0);
return;