* sim/ucsim/avr.src/arith_inst.cc: fixed bug #1088372- savr is not
[fw/sdcc] / link / z80 / lklist.c
index ff892b1b1c5cbe683730f31206b2a23708bb83b8..827b44c2e2c0cd51dba2f2b542603c0a8f9276c7 100644 (file)
@@ -161,7 +161,7 @@ VOID
 lstarea(xp)
 struct area *xp;
 {
-       register struct area *op;
+//     register struct area *op;
        register struct areax *oxp;
        register c, i, j;
        register char *ptr;
@@ -337,7 +337,7 @@ VOID lstarea(struct area *xp)
        register struct areax *oxp;
        register int i, j;
        int nmsym;
-       Addr_T a0, ai, aj;
+       Addr_T a0, ai = 0, aj = 0;
        struct sym *sp;
        struct sym **p;
 
@@ -1263,7 +1263,7 @@ char *str;
        int i;
 
        for (i=0; i<n; i++) {
-               if ((ctype[*str++] & rdx) == 0)
+               if ((ctype[(unsigned char)(*str++)] & rdx) == 0)
                        return(0);
        }
        return(1);