From 85a15778005c8412005ef7366cf40b0a50ace5ba Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Wed, 13 May 2015 20:28:05 -0400 Subject: [PATCH] math/big, cmd/internal/gc/big: fix vet detected printf problem Change-Id: I54425d8cbe0277d7a0c9d66c37f2128a0dfa6441 Reviewed-on: https://go-review.googlesource.com/10041 Run-TryBot: Minux Ma Reviewed-by: Robert Griesemer --- src/cmd/internal/gc/big/float_test.go | 2 +- src/math/big/float_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/internal/gc/big/float_test.go b/src/cmd/internal/gc/big/float_test.go index 2a48ec4465..de79b07aaf 100644 --- a/src/cmd/internal/gc/big/float_test.go +++ b/src/cmd/internal/gc/big/float_test.go @@ -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) } } } diff --git a/src/math/big/float_test.go b/src/math/big/float_test.go index 5b5a0247b1..5d241a503b 100644 --- a/src/math/big/float_test.go +++ b/src/math/big/float_test.go @@ -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) } } } -- 2.48.1