mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-25 14:20:53 +01:00
29329: fix undefined behaviour in math.c
This commit is contained in:
parent
6c6cb0e23d
commit
bd2d0636d2
2 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue