mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 09:48:21 +00:00
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
This commit is contained in:
parent
2f8bcda837
commit
0f04a07319
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue