summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2012-04-23 21:39:12 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-04-23 21:39:12 +0000
commit1ec20ea138a66e277f503fa627c9760348a23ce2 (patch)
tree11a66d225e58b0a5e11cbbbbb72b4ddd8d0252bb /libgo
parent62fa805ffa7ed1794662a00ff0871ebb6e568a80 (diff)
downloadgcc-1ec20ea138a66e277f503fa627c9760348a23ce2.tar.gz
go-lang.c (go_langhook_init): Set MPFR precision to 256.
* go-lang.c (go_langhook_init): Set MPFR precision to 256. time: Adjust float expression so that it first integer context. From-SVN: r186727
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/time/time_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/time/time_test.go b/libgo/go/time/time_test.go
index 3430526b8bf..e1a75e46d8e 100644
--- a/libgo/go/time/time_test.go
+++ b/libgo/go/time/time_test.go
@@ -804,7 +804,7 @@ var jsonTests = []struct {
time Time
json string
}{
- {Date(9999, 4, 12, 23, 20, 50, .52*1e9, UTC), `"9999-04-12T23:20:50.52Z"`},
+ {Date(9999, 4, 12, 23, 20, 50, 520*1e6, UTC), `"9999-04-12T23:20:50.52Z"`},
{Date(1996, 12, 19, 16, 39, 57, 0, Local), `"1996-12-19T16:39:57-08:00"`},
{Date(0, 1, 1, 0, 0, 0, 1, FixedZone("", 1*60)), `"0000-01-01T00:00:00.000000001+00:01"`},
}