]> granicus.if.org Git - transmission/commitdiff
use NSIntegerMax and NSUIntegerMax
authorMitchell Livingston <livings124@transmissionbt.com>
Mon, 3 Nov 2008 03:41:49 +0000 (03:41 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Mon, 3 Nov 2008 03:41:49 +0000 (03:41 +0000)
macosx/Controller.m
macosx/NSStringAdditions.m

index 9a452d0743dcbc756e1e97066274d513ecf88197..543be8ac5d9acf57b84dcffa3ecf2d97036bea2e 100644 (file)
@@ -1265,8 +1265,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
     
     [fTorrents removeObjectsInArray: torrents];
     
-    //for tiger - when 10.5-only repace with NSIntegerMax
-    NSInteger lowestOrderValue = INT_MAX;
+    NSInteger lowestOrderValue = NSIntegerMax;
     enumerator = [torrents objectEnumerator];
     while ((torrent = [enumerator nextObject]))
     {
index 923a5df0826aad99a7ba6fa25d451dea93191e72..37b40a505831b32da550c493209ae74655e3256f 100644 (file)
 
 + (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds
 {
-    return [NSString timeString: seconds showSeconds: showSeconds maxFields: UINT_MAX];
+    return [NSString timeString: seconds showSeconds: showSeconds maxFields: NSUIntegerMax];
 }
 
 + (NSString *) timeString: (NSUInteger) seconds showSeconds: (BOOL) showSeconds maxFields: (NSUInteger) max