From ce1d9ff5eee2df57ec4c2d1f39b967ecfef4b9bc Mon Sep 17 00:00:00 2001 From: Jesse Bounds Date: Fri, 9 Dec 2016 09:58:44 -0800 Subject: [ios, macos] Silence -Wc++11-narrowing warning in open gl layer (#7355) --- platform/darwin/src/MGLOpenGLStyleLayer.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform') diff --git a/platform/darwin/src/MGLOpenGLStyleLayer.mm b/platform/darwin/src/MGLOpenGLStyleLayer.mm index e41ad2465a..c72b844447 100644 --- a/platform/darwin/src/MGLOpenGLStyleLayer.mm +++ b/platform/darwin/src/MGLOpenGLStyleLayer.mm @@ -32,8 +32,8 @@ void MGLDrawCustomStyleLayer(void *context, const mbgl::style::CustomLayerRender .centerCoordinate = CLLocationCoordinate2DMake(params.latitude, params.longitude), .zoomLevel = params.zoom, .direction = mbgl::util::wrap(params.bearing, 0., 360.), - .pitch = params.pitch, - .perspectiveSkew = params.altitude, + .pitch = static_cast(params.pitch), + .perspectiveSkew = static_cast(params.altitude), }; [layer drawInMapView:layer.mapView withContext:drawingContext]; } -- cgit v1.2.1