summaryrefslogtreecommitdiff
path: root/libntp/octtoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'libntp/octtoint.c')
-rw-r--r--libntp/octtoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libntp/octtoint.c b/libntp/octtoint.c
index d189e40..e519601 100644
--- a/libntp/octtoint.c
+++ b/libntp/octtoint.c
@@ -24,7 +24,7 @@ octtoint(
u = 0;
while (*cp != '\0') {
- if (!isdigit((int)*cp) || *cp == '8' || *cp == '9')
+ if (!isdigit((unsigned char)*cp) || *cp == '8' || *cp == '9')
return 0;
if (u >= 0x20000000)
return 0; /* overflow */