Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 421b241

Browse files
tommyzedmehmetf
authored andcommitted
[google_maps_flutter] Cast error.code to unsigned long to avoid using NSInteger as %ld format warnings. (#2242)
1 parent 7a6c105 commit 421b241

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/google_maps_flutter/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.5.21+10
2+
3+
* Cast error.code to unsigned long to avoid using NSInteger as %ld format warnings.
4+
15
## 0.5.21+9
26

37
* Remove AndroidX warnings.

packages/google_maps_flutter/ios/Classes/GoogleMapMarkerController.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ static void InterpretInfoWindow(id<FLTGoogleMapMarkerOptionsSink> sink, NSDictio
189189
} else {
190190
NSString* error =
191191
[NSString stringWithFormat:@"'fromAssetImage' should have exactly 3 arguments. Got: %lu",
192-
iconData.count];
192+
(unsigned long)iconData.count];
193193
NSException* exception = [NSException exceptionWithName:@"InvalidBitmapDescriptor"
194194
reason:error
195195
userInfo:nil];
@@ -209,7 +209,7 @@ static void InterpretInfoWindow(id<FLTGoogleMapMarkerOptionsSink> sink, NSDictio
209209
} else {
210210
NSString* error = [NSString
211211
stringWithFormat:@"fromBytes should have exactly one argument, the bytes. Got: %lu",
212-
iconData.count];
212+
(unsigned long)iconData.count];
213213
NSException* exception = [NSException exceptionWithName:@"InvalidByteDescriptor"
214214
reason:error
215215
userInfo:nil];

0 commit comments

Comments
 (0)