diff --git a/packages/google_maps_flutter/CHANGELOG.md b/packages/google_maps_flutter/CHANGELOG.md index e775241f7598..2c83c6449da9 100644 --- a/packages/google_maps_flutter/CHANGELOG.md +++ b/packages/google_maps_flutter/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.5.21+10 + +* Cast error.code to unsigned long to avoid using NSInteger as %ld format warnings. + ## 0.5.21+9 * Remove AndroidX warnings. diff --git a/packages/google_maps_flutter/ios/Classes/GoogleMapMarkerController.m b/packages/google_maps_flutter/ios/Classes/GoogleMapMarkerController.m index 91b4e7bce2b7..2f0d4a989b9d 100644 --- a/packages/google_maps_flutter/ios/Classes/GoogleMapMarkerController.m +++ b/packages/google_maps_flutter/ios/Classes/GoogleMapMarkerController.m @@ -189,7 +189,7 @@ static void InterpretInfoWindow(id sink, NSDictio } else { NSString* error = [NSString stringWithFormat:@"'fromAssetImage' should have exactly 3 arguments. Got: %lu", - iconData.count]; + (unsigned long)iconData.count]; NSException* exception = [NSException exceptionWithName:@"InvalidBitmapDescriptor" reason:error userInfo:nil]; @@ -209,7 +209,7 @@ static void InterpretInfoWindow(id sink, NSDictio } else { NSString* error = [NSString stringWithFormat:@"fromBytes should have exactly one argument, the bytes. Got: %lu", - iconData.count]; + (unsigned long)iconData.count]; NSException* exception = [NSException exceptionWithName:@"InvalidByteDescriptor" reason:error userInfo:nil];