X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2FSDCC.lex;h=4f9b51887143ffac7c794b995ac355ef74005628;hb=195ee3f3ee25ce2c5f2a59fbd2779c4cb80527c3;hp=a0b0297c4e7b5e5b8a9feb64a2b2e2b7b4018a1b;hpb=67012d40979fd3584f926cfd9c200ffa4a16d338;p=fw%2Fsdcc diff --git a/src/SDCC.lex b/src/SDCC.lex index a0b0297c..4f9b5188 100644 --- a/src/SDCC.lex +++ b/src/SDCC.lex @@ -284,7 +284,7 @@ static int checkCurrFile (char *s) /* get the line number */ lNum = strtol(s, &tptr, 10); - if (tptr == s || !isspace(*tptr)) + if (tptr == s || !isspace((unsigned char)*tptr)) return 0; s = tptr; @@ -783,16 +783,16 @@ static int process_pragma(char *s) s += PRAGMA_LEN; /* look for the directive */ - while(isspace(*s)) + while(isspace((unsigned char)*s)) s++; cp = s; /* look for the end of the directive */ - while ((!isspace(*s)) && (*s != '\n')) + while ((!isspace((unsigned char)*s)) && (*s != '\n')) s++ ; /* skip separating whitespace */ - while (isspace(*s) && (*s != '\n')) + while (isspace((unsigned char)*s) && (*s != '\n')) s++; /* First give the port a chance */