diff --git a/SUUnarchiver_Private.h b/SUUnarchiver_Private.h index acf620ac..5928b278 100644 --- a/SUUnarchiver_Private.h +++ b/SUUnarchiver_Private.h @@ -18,7 +18,7 @@ + (BOOL)_canUnarchivePath:(NSString *)path; - _initWithPath:(NSString *)path; -- (void)_notifyDelegateOfExtractedLength:(long)length; +- (void)_notifyDelegateOfExtractedLength:(NSNumber *)length; - (void)_notifyDelegateOfSuccess; - (void)_notifyDelegateOfFailure; @end diff --git a/SUUnarchiver_Private.m b/SUUnarchiver_Private.m index 26105085..2030ecd5 100644 --- a/SUUnarchiver_Private.m +++ b/SUUnarchiver_Private.m @@ -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