From 0f04a073194033fbfc6f1d916fad83838042a7c0 Mon Sep 17 00:00:00 2001 From: Jakub Grzmiel Date: Mon, 25 Sep 2017 10:23:02 -0700 Subject: [PATCH] Fix format warnings for clang 5.0 Summary: Fix format warning which occur when using clang 5.0 compiler. Reviewed By: mzlee Differential Revision: D5900751 fbshipit-source-id: 4e9aea068aab3d2d882b8fb103a8828e861da97c --- Source/Internal/UICollectionView+DebugDescription.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Internal/UICollectionView+DebugDescription.m b/Source/Internal/UICollectionView+DebugDescription.m index 30f6733b..f1aa4c74 100644 --- a/Source/Internal/UICollectionView+DebugDescription.m +++ b/Source/Internal/UICollectionView+DebugDescription.m @@ -24,18 +24,18 @@ NSStringFromCGRect(self.frame), NSStringFromCGRect(self.bounds)]]; const NSInteger sections = [self numberOfSections]; - [debug addObject:[NSString stringWithFormat:@"Number of sections: %zi", sections]]; + [debug addObject:[NSString stringWithFormat:@"Number of sections: %lld", (long long)sections]]; for (NSInteger section = 0; section < sections; section++) { - [debug addObject:[NSString stringWithFormat:@" %zi items in section %zi", - [self numberOfItemsInSection:section], section]]; + [debug addObject:[NSString stringWithFormat:@" %lld items in section %lld", + (long long)[self numberOfItemsInSection:section], (long long)section]]; } [debug addObject:@"Visible cell details:"]; NSArray *visibleIndexPaths = [[self indexPathsForVisibleItems] sortedArrayUsingSelector:@selector(compare:)]; for (NSIndexPath *path in visibleIndexPaths) { - [debug addObject:[NSString stringWithFormat:@" Visible cell at section %zi, item %zi:", - path.section, path.item]]; + [debug addObject:[NSString stringWithFormat:@" Visible cell at section %lld, item %lld:", + (long long)path.section, (long long)path.item]]; [debug addObject:[NSString stringWithFormat:@" %@", [[self cellForItemAtIndexPath:path] description] ?: @""]]; } #endif // #if IGLK_DEBUG_DESCRIPTION_ENABLED