diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm index 63cca9210..fefb77d11 100644 --- a/platform/ios/MGLMapView.mm +++ b/platform/ios/MGLMapView.mm @@ -1139,7 +1139,7 @@ std::chrono::steady_clock::duration MGLDurationInSeconds(float duration) if (hitAnnotationTag != _selectedAnnotationTag) { id annotation = [self annotationWithTag:hitAnnotationTag]; - NSAssert(annotation, @"Cannot select nonexistent annotation with tag %i", hitAnnotationTag); + NSAssert(annotation, @"Cannot select nonexistent annotation with tag %u", hitAnnotationTag); [self selectAnnotation:annotation animated:YES]; } } diff --git a/platform/osx/src/MGLMapView.mm b/platform/osx/src/MGLMapView.mm index 39fcb3245..bc7309aae 100644 --- a/platform/osx/src/MGLMapView.mm +++ b/platform/osx/src/MGLMapView.mm @@ -1205,7 +1205,7 @@ public: if (hitAnnotationTag != MGLAnnotationTagNotFound) { if (hitAnnotationTag != _selectedAnnotationTag) { id annotation = [self annotationWithTag:hitAnnotationTag]; - NSAssert(annotation, @"Cannot select nonexistent annotation with ID %i", hitAnnotationTag); + NSAssert(annotation, @"Cannot select nonexistent annotation with tag %u", hitAnnotationTag); [self selectAnnotation:annotation]; } } else {