diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/math.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/math.c b/Src/math.c index 241445979..29556d973 100644 --- a/Src/math.c +++ b/Src/math.c @@ -670,7 +670,8 @@ zzlex(void) } if(*ptr != ']') goto bofs; - if (outputradix < 2 || outputradix > 36) { + n = (outputradix < 0) ? -outputradix : outputradix; + if (n < 2 || n > 36) { zerr("invalid base (must be 2 to 36 inclusive): %d", outputradix); return EOI; |