fix compiler warning on NSUInteger math