]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/gc: use appropriate verb to print array type length.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 1 Apr 2013 22:00:16 +0000 (00:00 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 1 Apr 2013 22:00:16 +0000 (00:00 +0200)
Fixes #4730.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8229043

src/cmd/gc/fmt.c

index ee5b9e939bf26099e74eb5d0aed51564b68790ed..8a14aa2df959a12d8b59069c7e78975b924571c9 100644 (file)
@@ -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);