From 7904e951d4efd3dd82afcebf5856eeb78217d86d Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Fri, 14 Nov 2014 15:53:15 -0500 Subject: [PATCH] [dev.power64] liblink: fix Solaris build a->class is a char. Boo hoo. LGTM=minux R=rsc, minux CC=golang-codereviews https://golang.org/cl/169630043 --- src/liblink/list6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/liblink/list6.c b/src/liblink/list6.c index d6b91c72b0..54cce4aa4b 100644 --- a/src/liblink/list6.c +++ b/src/liblink/list6.c @@ -156,7 +156,7 @@ Dconv(Fmt *fp) s += sprint(s, "%d ", i); s += sprint(s, "offset=%ld etype=%E width=%d", a->offset, a->etype, a->width); if(a->class != 0) - s += sprint(s, " class=%s", cnames9[a->class]); + s += sprint(s, " class=%s", cnames9[(int)a->class]); if(a->sym != nil) s += sprint(s, " sym=%s", a->sym->name); if(a->type == D_BRANCH && a->u.branch != nil)