unsigned long long for file size

This commit is contained in:
Mitchell Livingston 2006-08-21 16:17:36 +00:00
parent e332a8313d
commit 78ffb705da
2 changed files with 2 additions and 3 deletions

View File

@ -475,7 +475,7 @@
if ([ident isEqualToString: @"Icon"])
return [[NSWorkspace sharedWorkspace] iconForFileType: [[file objectForKey: @"Name"] pathExtension]];
else if ([ident isEqualToString: @"Size"])
return [NSString stringForFileSize: [[file objectForKey: @"Size"] unsignedIntValue]];
return [NSString stringForFileSize: [[file objectForKey: @"Size"] unsignedLongLongValue]];
else
return [[file objectForKey: @"Name"] lastPathComponent];
}

View File

@ -37,7 +37,6 @@
@end
@implementation Torrent
- (id) initWithPath: (NSString *) path lib: (tr_handle_t *) lib
@ -638,7 +637,7 @@
file = fInfo->files[i];
[files addObject: [NSDictionary dictionaryWithObjectsAndKeys: [[self downloadFolder]
stringByAppendingPathComponent: [NSString stringWithUTF8String: file.name]], @"Name",
[NSNumber numberWithUnsignedInt: file.length], @"Size", nil]];
[NSNumber numberWithUnsignedLongLong: file.length], @"Size", nil]];
}
return files;