Skip to content

Commit

Permalink
[pagingscrollview] Fix compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jverkoey committed Apr 7, 2015
1 parent 4b7b23b commit f6a8d5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pagingscrollview/src/NIPagingScrollView.m
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ - (NSRange)rangeOfVisiblePages {
if (_pageInset != 0) {
CGSize boundsSize = _scrollView.bounds.size;
CGSize frameSize = self.frame.size;
visibleRange = ceil(frameSize.width / (boundsSize.width + _pageMargin));
visibleRange = (NSInteger)ceil(frameSize.width / (boundsSize.width + _pageMargin));
}

NSInteger currentVisiblePageIndex = [self currentVisiblePageIndex];
Expand Down

0 comments on commit f6a8d5a

Please sign in to comment.