X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=sidebyside;f=as%2Fz80%2Fassym.c;h=db88a08afbd0def5d614c29fe381662a1649988b;hb=b762a7b4f56e91acf002e12bb6383007886a3fae;hp=3285265f813665a52cde841150f9795cb5e3ee4b;hpb=0bbed99a81e05cf645dc464c4722a63ec070ccef;p=fw%2Fsdcc diff --git a/as/z80/assym.c b/as/z80/assym.c index 3285265f..db88a08a 100644 --- a/as/z80/assym.c +++ b/as/z80/assym.c @@ -12,14 +12,12 @@ #include #include #include +#if defined(__APPLE__) && defined(__MACH__) +#include +#include +#else #include - -//#if defined(_MSC_VER) -//#include -//#else -//#include -//#endif - +#endif #include "asm.h" /*)Module assym.c @@ -360,7 +358,7 @@ register char *p1, *p2; if (*p1++ != *p2++) return (0); #else - if (ccase[*p1++] != ccase[*p2++]) + if (ccase[(unsigned char)(*p1++)] != ccase[(unsigned char)(*p2++)]) return (0); #endif @@ -403,7 +401,7 @@ register char *p; #if CASE_SENSITIVE h += *p++; #else - h += ccase[*p++]; + h += ccase[(unsigned char)(*p++)]; #endif } while (--n);