From c3fe62fd3a4a3d54f1661a145f7d1d4e9a86f226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20Nguye=CC=82=CC=83n?= Date: Tue, 15 Dec 2015 11:51:12 -0800 Subject: [PATCH] [ios, osx] Corrected missing annotation tag assertion message ref #3284 --- platform/ios/MGLMapView.mm | 2 +- platform/osx/src/MGLMapView.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 {