[ios, osx] Corrected missing annotation tag assertion message

ref #3284
This commit is contained in:
Minh Nguyễn
2015-12-15 11:51:12 -08:00
committed by Minh Nguyễn
parent 92bfbcb90d
commit c3fe62fd3a
2 changed files with 2 additions and 2 deletions

View File

@@ -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];
}
}

View File

@@ -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 {