mirror of
https://github.com/golang/go
synced 2024-11-20 09:14:46 -07:00
d1210acffd
Do not lose precision for durations specified without fractions that can be represented by an int64 such as 1<<53+1 nanoseconds. Previously there was some precision lost in floating point conversion. Handle overflow for durations above 1<<63-1 nanoseconds but not earlier. Add tests to cover the above cases. Change-Id: I4bcda93cee1673e501ecb6a9eef3914ee29aecd2 Reviewed-on: https://go-review.googlesource.com/2461 Reviewed-by: Russ Cox <rsc@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> |
||
---|---|---|
.. | ||
example_test.go | ||
export_test.go | ||
export_windows_test.go | ||
format_test.go | ||
format.go | ||
genzabbrs.go | ||
internal_test.go | ||
sleep_test.go | ||
sleep.go | ||
sys_plan9.go | ||
sys_unix.go | ||
sys_windows.go | ||
tick_test.go | ||
tick.go | ||
time_test.go | ||
time.go | ||
zoneinfo_abbrs_windows.go | ||
zoneinfo_plan9.go | ||
zoneinfo_read.go | ||
zoneinfo_test.go | ||
zoneinfo_unix.go | ||
zoneinfo_windows_test.go | ||
zoneinfo_windows.go | ||
zoneinfo.go |