diff --git a/Classes/BWHockeySettingsViewController.m b/Classes/BWHockeySettingsViewController.m index 4615b240e0..cb64432ec1 100644 --- a/Classes/BWHockeySettingsViewController.m +++ b/Classes/BWHockeySettingsViewController.m @@ -164,7 +164,7 @@ NSString *requiredIdentifier = nil; UITableViewCellStyle cellStyle = UITableViewCellStyleSubtitle; - if (indexPath.section == (NSUInteger)[self numberOfSections] - 1) { + if ((NSInteger)indexPath.section == [self numberOfSections] - 1) { cellStyle = UITableViewCellStyleDefault; requiredIdentifier = CheckmarkCellIdentifier; } else { @@ -181,7 +181,7 @@ cell.selectionStyle = UITableViewCellSelectionStyleNone; // Configure the cell... - if (indexPath.section == (NSUInteger)[self numberOfSections] - 1) { + if ((NSInteger)indexPath.section == [self numberOfSections] - 1) { cell.selectionStyle = UITableViewCellSelectionStyleBlue; // update check selection diff --git a/Classes/BWHockeyViewController.m b/Classes/BWHockeyViewController.m index 05f4216878..8ac38d7132 100644 --- a/Classes/BWHockeyViewController.m +++ b/Classes/BWHockeyViewController.m @@ -498,7 +498,7 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { CGFloat rowHeight = 0; - if ([cells_ count] > indexPath.row) { + if ([cells_ count] > (NSUInteger)indexPath.row) { PSWebTableViewCell *cell = [cells_ objectAtIndex:indexPath.row]; rowHeight = cell.webViewSize.height; } @@ -548,7 +548,7 @@ // Customize the appearance of table view cells. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - if ([cells_ count] > indexPath.row) { + if ([cells_ count] > (NSUInteger)indexPath.row) { return [cells_ objectAtIndex:indexPath.row]; } else { BWHockeyLog(@"Warning: cells_ and indexPath do not match? forgot calling redrawTableView?");