diff options
author | Eric Horacek <horacek.eric@gmail.com> | 2015-09-19 12:44:41 -0700 |
---|---|---|
committer | Eric Horacek <horacek.eric@gmail.com> | 2015-09-19 12:44:41 -0700 |
commit | 50ad8ac54d617fedd97752f1ad740bb61b52383f (patch) | |
tree | 90c7c62c41059f7eb1d0fa3afc6e5c84e042c731 /include | |
parent | 0f80fb9103a3e014f82c7d4990b401706a0430fd (diff) | |
download | qtlocation-mapboxgl-50ad8ac54d617fedd97752f1ad740bb61b52383f.tar.gz |
Remove implicit conversion from double → float
Occurs when targeting a 32-bit architecture
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/ios/MGLGeometry.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/ios/MGLGeometry.h b/include/mbgl/ios/MGLGeometry.h index 2dee7c76cd..847b7cc04d 100644 --- a/include/mbgl/ios/MGLGeometry.h +++ b/include/mbgl/ios/MGLGeometry.h @@ -85,7 +85,7 @@ NS_INLINE NSString *MGLStringFromCoordinateBounds(MGLCoordinateBounds bounds) { NS_INLINE CGFloat MGLRadiansFromDegrees(CLLocationDegrees degrees) { - return degrees * M_PI / 180; + return (CGFloat)(degrees * M_PI) / 180; } NS_INLINE CLLocationDegrees MGLDegreesFromRadians(CGFloat radians) |