[ios, macos] Silence -Wc++11-narrowing warning in open gl layer (#7355)

This commit is contained in:
Jesse Bounds
2016-12-09 09:58:44 -08:00
committed by GitHub
parent fe53af7de0
commit ce1d9ff5ee

View File

@@ -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];
}