NetBSD-macppc ctype needs uchars.

This commit is contained in:
rsc 2005-09-09 23:16:15 +00:00
parent 94d85bc000
commit 3bd56b04a8
22 changed files with 55 additions and 56 deletions

View file

@ -22,11 +22,11 @@ scanform(long icount, int prt, char *ifp, Map *map, int literal)
savdot=dot;
/*now loop over format*/
while (*fp) {
if (!isdigit(*fp))
if (!isdigit((uchar)*fp))
fcount = 1;
else {
fcount = 0;
while (isdigit(c = *fp++)) {
while (isdigit((uchar)c = *fp++)) {
fcount *= 10;
fcount += c-'0';
}