summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2015-12-15 11:51:12 -0800
committerMinh Nguyễn <mxn@1ec5.org>2015-12-15 11:51:12 -0800
commitc3fe62fd3a4a3d54f1661a145f7d1d4e9a86f226 (patch)
tree9905a27e3e004ed69c05267292e94ce13012aca8
parent92bfbcb90d2257d36824f3b40433d4b04947cb53 (diff)
downloadqtlocation-mapboxgl-c3fe62fd3a4a3d54f1661a145f7d1d4e9a86f226.tar.gz
[ios, osx] Corrected missing annotation tag assertion message
ref #3284
-rw-r--r--platform/ios/MGLMapView.mm2
-rw-r--r--platform/osx/src/MGLMapView.mm2
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/MGLMapView.mm b/platform/ios/MGLMapView.mm
index 63cca9210e..fefb77d112 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 <MGLAnnotation> 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 39fcb32459..bc7309aae5 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 <MGLAnnotation> 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 {