Skip to content

Commit

Permalink
Fix issue of improper NSInteger casting
Browse files Browse the repository at this point in the history
  • Loading branch information
1and2papa committed Oct 15, 2015
1 parent 32b909b commit e93ee86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CTAssetsPickerController/CTAssetsGridSelectedView.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ - (void)setShowsSelectionIndex:(BOOL)showsSelectionIndex
- (void)setSelectionIndex:(NSUInteger)selectionIndex;
{
_selectionIndex = selectionIndex;
self.selectionIndexLabel.text = [NSString stringWithFormat:@"%lu", selectionIndex + 1];
self.selectionIndexLabel.text = [NSString stringWithFormat:@"%lu", (unsigned long)selectionIndex + 1];
}


Expand Down
2 changes: 1 addition & 1 deletion CTAssetsPickerDemo/Examples/CTBasicViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N

PHAsset *asset = [self.assets objectAtIndex:indexPath.row];
cell.textLabel.text = [self.dateFormatter stringFromDate:asset.creationDate];
cell.detailTextLabel.text = [NSString stringWithFormat:@"%ld X %ld", (unsigned long)asset.pixelWidth, (unsigned long)asset.pixelHeight];
cell.detailTextLabel.text = [NSString stringWithFormat:@"%ld X %ld", (long)asset.pixelWidth, (long)asset.pixelHeight];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
cell.clipsToBounds = YES;

Expand Down

0 comments on commit e93ee86

Please sign in to comment.