Fixing #394787: "SUUnarchiver passes NSNumber to method requiring long"

This commit is contained in:
Andy Matuschak committed 2009-08-20 21:22:24 -07:00
1 parent f95cf6454d
commit ca040bdf9a
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@
+ (BOOL)_canUnarchivePath:(NSString *)path;
- _initWithPath:(NSString *)path;
- (void)_notifyDelegateOfExtractedLength:(long)length;
- (void)_notifyDelegateOfExtractedLength:(NSNumber *)length;
- (void)_notifyDelegateOfSuccess;
- (void)_notifyDelegateOfFailure;
@end
+2 -2
View File
@@ -28,10 +28,10 @@
return NO;
}
- (void)_notifyDelegateOfExtractedLength:(long)length
- (void)_notifyDelegateOfExtractedLength:(NSNumber *)length
{
if ([delegate respondsToSelector:@selector(unarchiver:extractedLength:)])
[delegate unarchiver:self extractedLength:length];
[delegate unarchiver:self extractedLength:[length doubleValue]];
}
- (void)_notifyDelegateOfSuccess