summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2016-12-09 09:58:44 -0800
committerGitHub <noreply@github.com>2016-12-09 09:58:44 -0800
commitce1d9ff5eee2df57ec4c2d1f39b967ecfef4b9bc (patch)
tree2db55fd4701eb181adf7c22da5eae1d33d11c812 /platform
parentfe53af7de031e296cdb9b0a7e88688fd3f54e0d8 (diff)
downloadqtlocation-mapboxgl-ce1d9ff5eee2df57ec4c2d1f39b967ecfef4b9bc.tar.gz
[ios, macos] Silence -Wc++11-narrowing warning in open gl layer (#7355)
Diffstat (limited to 'platform')
-rw-r--r--platform/darwin/src/MGLOpenGLStyleLayer.mm4
1 files changed, 2 insertions, 2 deletions
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<CGFloat>(params.pitch),
+ .perspectiveSkew = static_cast<CGFloat>(params.altitude),
};
[layer drawInMapView:layer.mapView withContext:drawingContext];
}