Fixed warnings.

This commit is contained in:
Thomas Dohmke 2011-12-03 15:35:31 +01:00
parent bc7d538ed6
commit f3f6f2172f
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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?");