]> Cypherpunks repositories - gostls13.git/commitdiff
math/big, cmd/internal/gc/big: fix vet detected printf problem
authorShenghou Ma <minux@golang.org>
Thu, 14 May 2015 00:28:05 +0000 (20:28 -0400)
committerMinux Ma <minux@golang.org>
Thu, 14 May 2015 05:34:40 +0000 (05:34 +0000)
Change-Id: I54425d8cbe0277d7a0c9d66c37f2128a0dfa6441
Reviewed-on: https://go-review.googlesource.com/10041
Run-TryBot: Minux Ma <minux@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/internal/gc/big/float_test.go
src/math/big/float_test.go

index 2a48ec44651477558d01cd92d1cc1d0b6ee8821b..de79b07aafc9c1110d1cc37779c6110c782de627 100644 (file)
@@ -1656,7 +1656,7 @@ func TestFloatCmpSpecialValues(t *testing.T) {
                                        want = +1
                                }
                                if got != want {
-                                       t.Errorf("(%g).Cmp(%g) = %s; want %s", x, y, got, want)
+                                       t.Errorf("(%g).Cmp(%g) = %v; want %v", x, y, got, want)
                                }
                        }
                }
index 5b5a0247b17962d6ef121a3b8ed3a44a5d5b53a6..5d241a503b56fa7ef0b62c6f545328ed820b3535 100644 (file)
@@ -1659,7 +1659,7 @@ func TestFloatCmpSpecialValues(t *testing.T) {
                                        want = +1
                                }
                                if got != want {
-                                       t.Errorf("(%g).Cmp(%g) = %s; want %s", x, y, got, want)
+                                       t.Errorf("(%g).Cmp(%g) = %v; want %v", x, y, got, want)
                                }
                        }
                }