mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Fixing #394787: "SUUnarchiver passes NSNumber to method requiring long"
This commit is contained in:
1 parent
f95cf6454d
commit
ca040bdf9a
2 files changed
+3
-3
No files matched your search
@@ -18,7 +18,7 @@
|
||||
+ (BOOL)_canUnarchivePath:(NSString *)path;
|
||||
- _initWithPath:(NSString *)path;
|
||||
|
||||
- (void)_notifyDelegateOfExtractedLength:(long)length;
|
||||
- (void)_notifyDelegateOfExtractedLength:(NSNumber *)length;
|
||||
- (void)_notifyDelegateOfSuccess;
|
||||
- (void)_notifyDelegateOfFailure;
|
||||
@end
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user