Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1460)

Unified Diff: util/mac/launchd_test.mm

Issue 1302843004: Use -[NSNumber numberWithDouble:] for doubles (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/mac/launchd_test.mm
diff --git a/util/mac/launchd_test.mm b/util/mac/launchd_test.mm
index 65722a42cbaab2968c8e6c712dc3965bea78d3e8..8f60fc91a7250f38d43c25bfa7d5541e9d8b7fe1 100644
--- a/util/mac/launchd_test.mm
+++ b/util/mac/launchd_test.mm
@@ -78,12 +78,12 @@ TEST(Launchd, CFPropertyToLaunchData_FloatingPoint) {
@-1.0,
[NSNumber numberWithFloat:std::numeric_limits<float>::min()],
[NSNumber numberWithFloat:std::numeric_limits<float>::max()],
- [NSNumber numberWithFloat:std::numeric_limits<double>::min()],
- [NSNumber numberWithFloat:std::numeric_limits<double>::max()],
+ [NSNumber numberWithDouble:std::numeric_limits<double>::min()],
+ [NSNumber numberWithDouble:std::numeric_limits<double>::max()],
@3.1415926535897932,
- [NSNumber numberWithFloat:std::numeric_limits<double>::infinity()],
- [NSNumber numberWithFloat:std::numeric_limits<double>::quiet_NaN()],
- [NSNumber numberWithFloat:std::numeric_limits<double>::signaling_NaN()],
+ [NSNumber numberWithDouble:std::numeric_limits<double>::infinity()],
+ [NSNumber numberWithDouble:std::numeric_limits<double>::quiet_NaN()],
+ [NSNumber numberWithDouble:std::numeric_limits<double>::signaling_NaN()],
};
for (size_t index = 0; index < arraysize(double_nses); ++index) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698