From 119189c459ba39859936b796076294eb52c1e830 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9my=20Oudompheng?= Date: Tue, 2 Apr 2013 00:00:16 +0200 Subject: [PATCH] cmd/gc: use appropriate verb to print array type length. Fixes #4730. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8229043 --- src/cmd/gc/fmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/gc/fmt.c b/src/cmd/gc/fmt.c index ee5b9e939b..8a14aa2df9 100644 --- a/src/cmd/gc/fmt.c +++ b/src/cmd/gc/fmt.c @@ -630,7 +630,7 @@ typefmt(Fmt *fp, Type *t) case TARRAY: if(t->bound >= 0) - return fmtprint(fp, "[%d]%T", (int)t->bound, t->type); + return fmtprint(fp, "[%lld]%T", t->bound, t->type); if(t->bound == -100) return fmtprint(fp, "[...]%T", t->type); return fmtprint(fp, "[]%T", t->type); -- 2.51.0