diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2002-05-17 15:14:03 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2002-05-17 15:14:03 +0000 |
| commit | cd3578ed9434868fab8da3031e83de5017332205 (patch) | |
| tree | 5f43853ae9d72f8e5098cf3c3896389dc4e9e375 /Src/math.c | |
| parent | 17171: Src/Modules/tcp.c: ztcp didn't return failure (diff) | |
| download | zsh-cd3578ed9434868fab8da3031e83de5017332205.tar zsh-cd3578ed9434868fab8da3031e83de5017332205.tar.gz zsh-cd3578ed9434868fab8da3031e83de5017332205.tar.bz2 zsh-cd3578ed9434868fab8da3031e83de5017332205.tar.lz zsh-cd3578ed9434868fab8da3031e83de5017332205.tar.xz zsh-cd3578ed9434868fab8da3031e83de5017332205.tar.zst zsh-cd3578ed9434868fab8da3031e83de5017332205.zip | |
17175: Src/math.c: didn't handle parameters before a ternary expression
properly.
Diffstat (limited to 'Src/math.c')
| -rw-r--r-- | Src/math.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/math.c b/Src/math.c index e87a286fb..344670d6e 100644 --- a/Src/math.c +++ b/Src/math.c @@ -1109,6 +1109,8 @@ mathparse(int pc) } break; case QUEST: + if (stack[sp].val.type == MN_UNSET) + stack[sp].val = getnparam(stack[sp].lval); q = (stack[sp].val.type == MN_FLOAT) ? (zlong)stack[sp].val.u.d : stack[sp].val.u.l; |
