I'm modernizing a legacy project and I enabled -Wconversion
flag on Xcode. Now I have a lot of warning like
Implicit conversion changes signedness: 'NSUInteger' (aka 'unsigned long') to 'NSInteger' (aka 'long')
using code like the following while interacting with a UITableView
Item *item = [self.items objectAtIndex:indexPath.row];
row
is defined as NSInteger
while objectAtIndex:
accepts an NSUInteger
.
Is there a smart way to fix those warnings?