Skip to content

Commit

Permalink
cmd/internal/gc: fix node print
Browse files Browse the repository at this point in the history
Change-Id: I0d2b909ceeba9da86c77de4ce23d7c6063f8f10f
Reviewed-on: https://go-review.googlesource.com/9017
Reviewed-by: Minux Ma <[email protected]>
  • Loading branch information
rsc committed Apr 17, 2015
1 parent 7ae9d06 commit a5e48cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/internal/gc/fmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a5e48cf

Please sign in to comment.