Changeset 7024


Ignore:
Timestamp:
Nov 3, 2008, 3:41:49 AM (12 years ago)
Author:
livings124
Message:

use NSIntegerMax and NSUIntegerMax

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r7017 r7024  
    12661266    [fTorrents removeObjectsInArray: torrents];
    12671267   
    1268     //for tiger - when 10.5-only repace with NSIntegerMax
    1269     NSInteger lowestOrderValue = INT_MAX;
     1268    NSInteger lowestOrderValue = NSIntegerMax;
    12701269    enumerator = [torrents objectEnumerator];
    12711270    while ((torrent = [enumerator nextObject]))
  • trunk/macosx/NSStringAdditions.m

    r6974 r7024  
    110110+ (NSString *) timeString: (uint64_t) seconds showSeconds: (BOOL) showSeconds
    111111{
    112     return [NSString timeString: seconds showSeconds: showSeconds maxFields: UINT_MAX];
     112    return [NSString timeString: seconds showSeconds: showSeconds maxFields: NSUIntegerMax];
    113113}
    114114
Note: See TracChangeset for help on using the changeset viewer.