I try to compare with numerical values ββwith each other, but I get the warning "Comparison of integers of different signs:" NSInteger "(aka" inti ") and" NSUInteger "(aka" unsigned int ").
This is logical, as I do it;). But how can I fix this warning. This is the code that triggers the warning:
if (page >= self.controllers.count || page < 0)
return;
The page may be -1, so this is NSInteger, but count returns NSUInteger.
source
share