1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-28 06:49:49 +02:00

12741: outputradix was stomped on by nested matheval

This commit is contained in:
Peter Stephenson 2000-09-04 15:52:16 +00:00
parent f9b7929289
commit 88b886e603
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-09-04 Peter Stephenson <pws@csr.com>
* 12741: Src/math.c: problem with nested matheval unexpectedly
stomping on outputradix.
2000-09-04 Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
* 12736: configure.in: Fix `make install' dependency

View File

@ -959,7 +959,9 @@ matheval(char *s)
char *junk;
mnumber x;
int xmtok = mtok;
outputradix = 0;
/* maintain outputradix across levels of evaluation */
if (!mlevel)
outputradix = 0;
if (!*s) {
x.type = MN_INTEGER;