mirror of
https://github.com/golang/go.git
synced 2024-09-22 10:58:58 +00:00
cmd/gc: use appropriate verb to print array type length.
Fixes #4730. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8229043
This commit is contained in:
parent
94b7853924
commit
119189c459
@ -630,7 +630,7 @@ typefmt(Fmt *fp, Type *t)
|
|||||||
|
|
||||||
case TARRAY:
|
case TARRAY:
|
||||||
if(t->bound >= 0)
|
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)
|
if(t->bound == -100)
|
||||||
return fmtprint(fp, "[...]%T", t->type);
|
return fmtprint(fp, "[...]%T", t->type);
|
||||||
return fmtprint(fp, "[]%T", t->type);
|
return fmtprint(fp, "[]%T", t->type);
|
||||||
|
Loading…
Reference in New Issue
Block a user