diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2024-12-30 10:45:54 -0800 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2024-12-30 10:55:23 -0800 |
| commit | 9eb131e53029a648b549f507cac47f4769031073 (patch) | |
| tree | 6598314d9b702383eef608014e7c4c773953cec8 /src/factor.c | |
| parent | tests: improve the chmod/symlinks.sh test (diff) | |
| download | coreutils-9eb131e53029a648b549f507cac47f4769031073.tar.gz coreutils-9eb131e53029a648b549f507cac47f4769031073.zip | |
maint: ISDIGIT → c_isdigit
* gl/lib/strnumcmp-in.h (ISDIGIT):
* src/system.h (ISDIGIT): Remove. All uses replaced by c_isdigit,
with appropriate inclusions of c-ctype.h. This is more regular,
and is more portable to existing (but unlikely) platforms where
INT_MAX == UINT_MAX.
Diffstat (limited to 'src/factor.c')
| -rw-r--r-- | src/factor.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/factor.c b/src/factor.c index 85cd1b1c9..04aa8806e 100644 --- a/src/factor.c +++ b/src/factor.c @@ -109,6 +109,7 @@ #include "system.h" #include "assure.h" +#include "c-ctype.h" #include "full-write.h" #include "quote.h" #include "readtokens.h" @@ -2257,7 +2258,7 @@ strto2uintmax (uintmax_t *hip, uintmax_t *lop, char const *s) if (c == 0) break; - if (UNLIKELY (!ISDIGIT (c))) + if (UNLIKELY (!c_isdigit (c))) { err = LONGINT_INVALID; break; |
