project_files/HedgewarsMobile/Classes/FlagsViewController.m
branchios-revival
changeset 11148 064a53861759
parent 10108 c68cf030eded
child 12872 00215a7ec5f5
--- a/project_files/HedgewarsMobile/Classes/FlagsViewController.m	Thu Sep 10 01:31:52 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/FlagsViewController.m	Thu Sep 10 01:49:15 2015 +0200
@@ -131,10 +131,10 @@
 #pragma mark -
 #pragma mark Table view delegate
 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
-    int newRow = [indexPath row];
-    int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
-    int newSection = [indexPath section];
-    int oldSection = (lastIndexPath != nil) ? [lastIndexPath section] : -1;
+    NSInteger newRow = [indexPath row];
+    NSInteger oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
+    NSInteger newSection = [indexPath section];
+    NSInteger oldSection = (lastIndexPath != nil) ? [lastIndexPath section] : -1;
 
     if (newRow != oldRow || newSection != oldSection) {
         NSString *flag = nil;