[darwin] Fix GCC_WARN_SIGN_COMPARE warnings

This commit is contained in:
Jason Wray
2018-11-19 18:51:28 -05:00
parent 00d0864441
commit 83ecb76562
11 changed files with 22 additions and 22 deletions

View File

@@ -2590,7 +2590,7 @@ public:
}
// Compass
NSUInteger compassIndex = 0;
NSInteger compassIndex = 0;
if (index == compassIndex)
{
return self.compassView;
@@ -2666,7 +2666,7 @@ public:
}
// Attribution button
NSUInteger attributionButtonIndex = NSMaxRange(visibleRoadFeatureRange);
NSInteger attributionButtonIndex = NSMaxRange(visibleRoadFeatureRange);
if (index == attributionButtonIndex)
{
return self.attributionButton;

View File

@@ -358,7 +358,7 @@ static const CGFloat MGLFeetPerMeter = 3.28084;
- (void)updateLabels {
NSEnumerator<UIView*> *viewEnumerator = [self.labelViews objectEnumerator];
NSInteger i = 0;
NSUInteger i = 0;
CLLocationDistance multiplier = (self.row.distance / self.row.numberOfBars);
if (![self usesMetricSystem]) {