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:
parent
f9b7929289
commit
88b886e603
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user