ctype sign fixes (Tom Miller)

This commit is contained in:
rsc 2005-10-31 16:42:32 +00:00
parent b330c942b4
commit 74374cc8a4
10 changed files with 22 additions and 17 deletions

View file

@ -1,3 +1,4 @@
#include <u.h>
#include "tdef.h"
#include "fns.h"
#include "ext.h"
@ -495,7 +496,7 @@ static void install(char *s) /* map ab4c5de to: 12 abcde \0 00405 \0 */
num[0] = '0';
*nextpat++ = ' '; /* fill in with count later */
for (npat = lastpat = 0; *s != '\n' && *s != '\0'; s++) {
if (isdigit(*s)) {
if (isdigit((uchar)*s)) {
num[npat] = *s;
lastpat = npat;
} else {