Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Classes/NVHGzipFile.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ typedef NS_ENUM(NSInteger, NVHGzipFileErrorType)

@interface NVHGzipFile ()

@property (nonatomic,assign) CGFloat fileSizeFraction;
@property (nonatomic,assign) double fileSizeFraction;

@end

Expand Down Expand Up @@ -103,7 +103,7 @@ - (NSInteger)inflateGzip:(NSString *)sourcePath
// Convert source path into something a C library can handle
const char *sourceCString = [sourcePath cStringUsingEncoding:NSASCIIStringEncoding];

gzFile *sourceGzFile = gzopen(sourceCString, "rb");
gzFile sourceGzFile = gzopen(sourceCString, "rb");

unsigned int bufferLength = 1024*256; //Thats like 256Kb
void *buffer = malloc(bufferLength);
Expand Down Expand Up @@ -221,7 +221,7 @@ - (NSInteger)deflateToGzip:(NSString *)destinationPath
// Convert destination path into something a C library can handle
const char *destinationCString = [destinationPath cStringUsingEncoding:NSASCIIStringEncoding];

gzFile *destinationGzFile = gzopen(destinationCString, "wb");
gzFile destinationGzFile = gzopen(destinationCString, "wb");

unsigned int bufferLength = 1024*256; //Thats like 256Kb
void *buffer = malloc(bufferLength);
Expand Down