From 50ad8ac54d617fedd97752f1ad740bb61b52383f Mon Sep 17 00:00:00 2001 From: Eric Horacek Date: Sat, 19 Sep 2015 12:44:41 -0700 Subject: [PATCH] =?UTF-8?q?Remove=20implicit=20conversion=20from=20double?= =?UTF-8?q?=20=E2=86=92=20float?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Occurs when targeting a 32-bit architecture --- include/mbgl/ios/MGLGeometry.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mbgl/ios/MGLGeometry.h b/include/mbgl/ios/MGLGeometry.h index 2dee7c76c..847b7cc04 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)