added 261.a,b (16 bit rotate) by Stas Sergeev <stsp AT users.sourceforge.net> with...
[fw/sdcc] / as / z80 / assym.c
index f57f5f994519c5ef33c51b556b5003b57bc3ed4f..04cbc7da501abfc14679ee70123e6b43bccec494 100644 (file)
@@ -12,7 +12,7 @@
 #include <stdio.h>
 #include <setjmp.h>
 #include <string.h>
-#include <malloc.h>
+#include <stdlib.h>
 #include "asm.h"
 
 /*)Module      assym.c
@@ -353,7 +353,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
 
@@ -396,7 +396,7 @@ register char *p;
 #if    CASE_SENSITIVE
                h += *p++;
 #else
-               h += ccase[*p++];
+               h += ccase[(unsigned char)(*p++)];
 #endif
 
        } while (--n);