X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Fpic%2Fpcode.c;h=5128c5ad85a8636f87c767f2fe5bb34699f9ac62;hb=195ee3f3ee25ce2c5f2a59fbd2779c4cb80527c3;hp=91886caaa23680e8f502859c421922c2c7cce3bf;hpb=67012d40979fd3584f926cfd9c200ffa4a16d338;p=fw%2Fsdcc diff --git a/src/pic/pcode.c b/src/pic/pcode.c index 91886caa..5128c5ad 100644 --- a/src/pic/pcode.c +++ b/src/pic/pcode.c @@ -1397,7 +1397,7 @@ void pCodeInitRegisters(void) /* */ /*-----------------------------------------------------------------*/ -int mnem2key(char const *mnem) +int mnem2key(unsigned char const *mnem) { int key = 0; @@ -2067,7 +2067,7 @@ pCode *newpCodeAsmDir(char *asdir, char *argfmt, ...) if(asdir && *asdir) { - while(isspace(*asdir))asdir++; // strip any white space from the beginning + while(isspace((unsigned char)*asdir))asdir++; // strip any white space from the beginning pcad->directive = Safe_strdup( asdir ); } @@ -2080,7 +2080,7 @@ pCode *newpCodeAsmDir(char *asdir, char *argfmt, ...) va_end(ap); - while(isspace(*lbp))lbp++; + while(isspace((unsigned char)*lbp))lbp++; if(lbp && *lbp) pcad->arg = Safe_strdup( lbp );