From 98fe504e35d340637df78ff15a53702df679d8b2 Mon Sep 17 00:00:00 2001 From: Clement T Date: Thu, 15 Oct 2015 17:33:19 +0800 Subject: [PATCH] Fix issue of improper NSInteger casting --- CTAssetsPickerController/CTAssetsGridSelectedView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CTAssetsPickerController/CTAssetsGridSelectedView.m b/CTAssetsPickerController/CTAssetsGridSelectedView.m index d3fcca1f..2d5cc471 100644 --- a/CTAssetsPickerController/CTAssetsGridSelectedView.m +++ b/CTAssetsPickerController/CTAssetsGridSelectedView.m @@ -155,7 +155,7 @@ - (void)setShowsSelectionIndex:(BOOL)showsSelectionIndex - (void)setSelectionIndex:(NSUInteger)selectionIndex; { _selectionIndex = selectionIndex; - self.selectionIndexLabel.text = [NSString stringWithFormat:@"%lu", (unsigned long)selectionIndex + 1]; + self.selectionIndexLabel.text = [NSString stringWithFormat:@"%lu", (unsigned long)(selectionIndex + 1)]; }