1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +01:00

Mikael: 25143: spelling corrections

25144: report supported bases
25139: fix number
This commit is contained in:
Peter Stephenson 2008-06-10 08:50:35 +00:00
parent deab7d6642
commit 1c29f641c6
12 changed files with 30 additions and 19 deletions

View file

@ -1844,7 +1844,7 @@ zstrtol(const char *s, char **t, int base)
}
inp = s;
if (base < 2 || base > 36) {
zerr("invalid base: %d", base);
zerr("invalid base (must be 2 to 36 inclusive): %d", base);
return (zlong)0;
} else if (base <= 10)
for (; *s >= '0' && *s < ('0' + base); s++) {