From 3b7e98d0b126fdc97ba0ae21412ac35508ccf5b0 Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Wed, 7 Dec 2016 12:11:19 +0100 Subject: [PATCH] [ios, macos] fixed compiler warnings --- platform/darwin/test/MGLGeoJSONSourceTests.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/darwin/test/MGLGeoJSONSourceTests.mm b/platform/darwin/test/MGLGeoJSONSourceTests.mm index 1b6da95a6..47f12828e 100644 --- a/platform/darwin/test/MGLGeoJSONSourceTests.mm +++ b/platform/darwin/test/MGLGeoJSONSourceTests.mm @@ -47,7 +47,7 @@ NSData *data = [geoJSON dataUsingEncoding:NSUTF8StringEncoding]; MGLGeoJSONSource *source = [[MGLGeoJSONSource alloc] initWithIdentifier:@"source-id" geoJSONData:data options:nil]; - MGLShapeCollection *collection = source.shape; + MGLShapeCollection *collection = (MGLShapeCollection *)source.shape; XCTAssertNotNil(collection); XCTAssertEqual(collection.shapes.count, 1); XCTAssertTrue([collection.shapes.firstObject isMemberOfClass:[MGLPolylineFeature class]]); @@ -245,7 +245,7 @@ MGLGeoJSONSource *source = [[MGLGeoJSONSource alloc] initWithIdentifier:@"source-id" shape:shapeCollectionFeature_1 options:nil]; - MGLShapeCollectionFeature *shape = source.shape; + MGLShapeCollectionFeature *shape = (MGLShapeCollectionFeature *)source.shape; XCTAssertNotNil(shape); XCTAssert(shape.shapes.count == 7, @"Shape collection should contain 7 shapes");