]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix bug in oconv
authorRobert Griesemer <gri@golang.org>
Thu, 8 Sep 2016 21:50:24 +0000 (14:50 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 8 Sep 2016 22:01:55 +0000 (22:01 +0000)
Introduced by https://go-review.googlesource.com/#/c/28331/ .

Change-Id: Id75aed6410f06b302d5347f6ca6a2e19c61f6fb6
Reviewed-on: https://go-review.googlesource.com/28779
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/fmt.go

index 0beffd675276e801957883204cf9cb491699563f..47762ca989b33c94ddc5a9dcac957cc5232957b0 100644 (file)
@@ -244,7 +244,7 @@ func (o Op) oconv(s fmt.State) {
                return
        }
 
-       fmt.Sprintf("O-%d", o)
+       fmt.Fprintf(s, "O-%d", o)
 }
 
 var classnames = []string{