summaryrefslogtreecommitdiff
path: root/Build/source/texk/makeindexk/genind.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/makeindexk/genind.c')
-rw-r--r--Build/source/texk/makeindexk/genind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/texk/makeindexk/genind.c b/Build/source/texk/makeindexk/genind.c
index 61cbaa9480b..1d1ba03ad51 100644
--- a/Build/source/texk/makeindexk/genind.c
+++ b/Build/source/texk/makeindexk/genind.c
@@ -441,8 +441,8 @@ insert_page(void)
while (pageno[i++] != NUL);
j = --i;
/* find the leftmost digit */
- while (isdigit(pageno[--i]) && i > 0);
- if (!isdigit(pageno[i]))
+ while (isdigit((unsigned char)pageno[--i]) && i > 0);
+ if (!isdigit((unsigned char)pageno[i]))
i++;
/* convert page from literal to numeric */
page = strtoint(&pageno[i]) + 1;