1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 13:03:50 +00:00

use NSIntegerMax and NSUIntegerMax

This commit is contained in:
Mitchell Livingston 2008-11-03 03:41:49 +00:00
parent dad56ccc62
commit 98e5967dfc
2 changed files with 2 additions and 3 deletions

View 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]))
{

View file

@ -109,7 +109,7 @@
+ (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