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:
parent
deab7d6642
commit
1c29f641c6
12 changed files with 30 additions and 19 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue