forsyth: zaddr cleanup Reference: /n/atom/patch/applied/6lzaddrnits Date: Sun Aug 16 04:06:36 CES 2015 Signed-off-by: quanstro@quanstro.net --- /sys/src/cmd/6l/obj.c Sun Aug 16 04:06:27 2015 +++ /sys/src/cmd/6l/obj.c Sun Aug 16 04:06:28 2015 @@ -535,7 +535,7 @@ zaddr(uchar *p, Adr *a, Sym *h[]) { int c, t, i; - long l; + int l; Sym *s; Auto *u; @@ -551,10 +551,6 @@ } a->offset = 0; if(t & T_OFFSET) { - /* - * Hack until Charles fixes the compiler. - a->offset = (long)(p[c] | (p[c+1]<<8) | (p[c+2]<<16) | (p[c+3]<<24)); - */ l = p[c] | (p[c+1]<<8) | (p[c+2]<<16) | (p[c+3]<<24); a->offset = l; c += 4;