1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-04 09:01:06 +01:00

25905: fix and test doubled-hash radix output

This commit is contained in:
Peter Stephenson 2008-10-16 09:34:51 +00:00
parent b37952c37b
commit 3c248a0de4
3 changed files with 23 additions and 1 deletions

View file

@ -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;