1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-30 05:40:58 +01:00

Use idigit() instead of range-checking '0' - '9'.

This commit is contained in:
Wayne Davison 2005-10-31 18:22:40 +00:00
parent 8c3234fb73
commit 87f010ec1a
4 changed files with 8 additions and 9 deletions

View file

@ -605,7 +605,7 @@ static unsigned long getnumeric(char *p, int *errp)
{
unsigned long ret;
if(*p < '0' || *p > '9') {
if (!idigit(*p)) {
*errp = 1;
return 0;
}