Commit Graph

6 Commits

Author SHA1 Message Date
Greg Parker
72c65ffcaf Revert "[stdlib] Fix FloatingPoint.init(exactly:) (#11311)"
This reverts commit c9f4df84f6.
It is causing test failures on 32-bit iOS simulator and on Linux.
2017-10-18 01:17:08 -07:00
Nate Cook
c9f4df84f6 [stdlib] Fix FloatingPoint.init(exactly:) (#11311)
* [stdlib] Fix FloatingPoint.init(exactly:)

This initializer wasn't actually checking the exact conversion. Corrects
the tests as well.
2017-10-17 13:52:11 -05:00
Philippe Hausler
c358afe655 [Foundation] Adjust Double and Float bridges to be more lenient 2017-06-16 15:18:27 -07:00
Philippe Hausler
a9600338c8 [Foundation] Disable more NSNumber test failures due to incorrect float representations 2017-05-04 11:03:20 -07:00
Philippe Hausler
0011117a20 [Foundation] Work-around ambiguity of initializers by avoiding using bitPattern in literal cases that could be claimed as double values 2017-05-03 12:56:03 -07:00
Philippe Hausler
d9ae358b05 Rename NSNumber bridge tests to be clear on what they do 2017-05-02 09:30:35 -07:00