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:
parent
dad56ccc62
commit
98e5967dfc
2 changed files with 2 additions and 3 deletions
|
@ -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]))
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue