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:
parent
8c3234fb73
commit
87f010ec1a
4 changed files with 8 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue