diff options
Diffstat (limited to 'libgo/go/strconv/ftoa_test.go')
-rw-r--r-- | libgo/go/strconv/ftoa_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/strconv/ftoa_test.go b/libgo/go/strconv/ftoa_test.go index 1b4dcd945b8..0b9f0feafa6 100644 --- a/libgo/go/strconv/ftoa_test.go +++ b/libgo/go/strconv/ftoa_test.go @@ -18,7 +18,7 @@ type ftoaTest struct { s string } -func fdiv(a, b float64) float64 { return a / b } // keep compiler in the dark +func fdiv(a, b float64) float64 { return a / b } const ( below1e23 = 99999999999999974834176 @@ -94,8 +94,8 @@ var ftoatests = []ftoaTest{ {above1e23, 'f', -1, "100000000000000010000000"}, {above1e23, 'g', -1, "1.0000000000000001e+23"}, - {fdiv(5e-304, 1e20), 'g', -1, "5e-324"}, - {fdiv(-5e-304, 1e20), 'g', -1, "-5e-324"}, + {fdiv(5e-304, 1e20), 'g', -1, "5e-324"}, // avoid constant arithmetic + {fdiv(-5e-304, 1e20), 'g', -1, "-5e-324"}, // avoid constant arithmetic {32, 'g', -1, "32"}, {32, 'g', 0, "3e+01"}, |