]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/gc: fix node print
authorRuss Cox <rsc@golang.org>
Fri, 17 Apr 2015 05:50:16 +0000 (01:50 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 17 Apr 2015 14:57:51 +0000 (14:57 +0000)
Change-Id: I0d2b909ceeba9da86c77de4ce23d7c6063f8f10f
Reviewed-on: https://go-review.googlesource.com/9017
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/internal/gc/fmt.go

index d79ceb4c970392619a73f7dd2f69b3c6cc372d96..ff5dc5e909d5f6b741ab494f3a92de57bb468231 100644 (file)
@@ -202,7 +202,7 @@ func Jconv(n *Node, flag int) string {
        }
 
        if c == 0 && n.Addable {
-               fmt.Fprintf(&buf, " a(%d)", n.Addable)
+               fmt.Fprintf(&buf, " a(%v)", n.Addable)
        }
 
        if c == 0 && n.Vargen != 0 {
@@ -230,7 +230,7 @@ func Jconv(n *Node, flag int) string {
        }
 
        if n.Colas {
-               fmt.Fprintf(&buf, " colas(%d)", n.Colas)
+               fmt.Fprintf(&buf, " colas(%v)", n.Colas)
        }
 
        if n.Funcdepth != 0 {