Commit 7b596457 authored by Austin Clements's avatar Austin Clements

[dev.cc] liblink: fix Solaris build some more

a->name and a->class are char, so Solaris doesn't like using
them as array indexes.  (This same problem was fixed for amd64
in CL 169630043.)

LGTM=aram, minux
R=rsc, minux, aram
CC=golang-codereviews
https://golang.org/cl/175430043
parent 50e0749f
...@@ -178,13 +178,13 @@ Dconv(Fmt *fp) ...@@ -178,13 +178,13 @@ Dconv(Fmt *fp)
s += sprint(s, "type=%s ", dnames9[a->type]); s += sprint(s, "type=%s ", dnames9[a->type]);
else else
s += sprint(s, "type=%d ", a->type); s += sprint(s, "type=%d ", a->type);
if(a->name >= 0 && a->name < D_LAST && dnames9[a->name] != nil) if(a->name >= 0 && a->name < D_LAST && dnames9[(int)a->name] != nil)
s += sprint(s, "name=%s ", dnames9[a->name]); s += sprint(s, "name=%s ", dnames9[(int)a->name]);
else else
s += sprint(s, "name=%d ", a->name); s += sprint(s, "name=%d ", a->name);
s += sprint(s, "offset=%ld etype=%E width=%d", a->offset, a->etype, a->width); s += sprint(s, "offset=%ld etype=%E width=%d", a->offset, a->etype, a->width);
if(a->class != 0) if(a->class != 0)
s += sprint(s, " class=%s", cnames9[a->class]); s += sprint(s, " class=%s", cnames9[(int)a->class]);
if(a->reg != NREG) if(a->reg != NREG)
s += sprint(s, " reg=%d", a->reg); s += sprint(s, " reg=%d", a->reg);
if(a->sym != nil) if(a->sym != nil)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment