project_files/HedgewarsMobile/Classes/HWUtils.m
branchios-revival
changeset 11148 064a53861759
parent 10108 c68cf030eded
child 11210 2e80c9861818
--- a/project_files/HedgewarsMobile/Classes/HWUtils.m	Thu Sep 10 01:31:52 2015 +0200
+++ b/project_files/HedgewarsMobile/Classes/HWUtils.m	Thu Sep 10 01:49:15 2015 +0200
@@ -111,15 +111,15 @@
     NSInteger res = 0;
     do {
         res = (random() % 64511) + 1024;
-    } while ([activePorts containsObject:[NSNumber numberWithInt:res]]);
+    } while ([activePorts containsObject:[NSNumber numberWithInteger:res]]);
 
     // add this number to the forbdding list
-    [activePorts addObject:[NSNumber numberWithInt:res]];
+    [activePorts addObject:[NSNumber numberWithInteger:res]];
     return res;
 }
 
 +(void) freePort:(NSInteger) port {
-    [activePorts removeObject:[NSNumber numberWithInt:port]];
+    [activePorts removeObject:[NSNumber numberWithInteger:port]];
 }
 
 +(BOOL) isNetworkReachable {