Permalink
Browse files

Make same change to ASIDataDecompressor as previous commit

  • Loading branch information...
1 parent 0205a66 commit ffbc0a4dfe1bb5749c568082fd9e1076460f3722 @pokeb committed Sep 19, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 Classes/ASIDataDecompressor.m
  2. +1 −1 Classes/ASIHTTPRequest.m
@@ -85,7 +85,7 @@ - (NSData *)uncompressBytes:(Bytef *)bytes length:(NSUInteger)length error:(NSEr
[outputData increaseLengthBy:halfLength];
}
- zStream.next_out = [outputData mutableBytes] + zStream.total_out-bytesProcessedAlready;
+ zStream.next_out = (Bytef*)[outputData mutableBytes] + zStream.total_out-bytesProcessedAlready;
zStream.avail_out = (unsigned int)([outputData length] - (zStream.total_out-bytesProcessedAlready));
status = inflate(&zStream, Z_NO_FLUSH);
@@ -181,7 +181,7 @@ + (BOOL)uncompressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destina
}
// Write the inflated data out to the destination file
- [outputStream write:[outputData bytes] maxLength:[outputData length]];
+ [outputStream write:(Bytef*)[outputData bytes] maxLength:[outputData length]];
// Make sure nothing went wrong
if ([inputStream streamStatus] == NSStreamEventErrorOccurred) {
View
@@ -24,7 +24,7 @@
#import "ASIDataCompressor.h"
// Automatically set on build
-NSString *ASIHTTPRequestVersion = @"v1.8.1-44 2011-09-17";
+NSString *ASIHTTPRequestVersion = @"v1.8.1-49 2011-09-19";
static NSString *defaultUserAgent = nil;

0 comments on commit ffbc0a4

Please sign in to comment.