Skip to content

Commit

Permalink
Update stringWithFormat message to fix warnings about int/NSInteger w…
Browse files Browse the repository at this point in the history
…hen compiling for 64 bit.
  • Loading branch information
David Gifford committed Feb 20, 2014
1 parent 43ff3c4 commit 3a6678c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/IDMPhotoBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {
- (void)updateToolbar {
// Counter
if ([self numberOfPhotos] > 1) {
_counterLabel.text = [NSString stringWithFormat:@"%i %@ %i", _currentPageIndex+1, IDMPhotoBrowserLocalizedStrings(@"of"), [self numberOfPhotos]];
_counterLabel.text = [NSString stringWithFormat:@"%lu %@ %lu", _currentPageIndex+1, IDMPhotoBrowserLocalizedStrings(@"of"), (unsigned long)[self numberOfPhotos]];
} else {
_counterLabel.text = nil;
}
Expand Down

0 comments on commit 3a6678c

Please sign in to comment.