Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make same change to ASIDataDecompressor as previous commit

  • Loading branch information...
commit ffbc0a4dfe1bb5749c568082fd9e1076460f3722 1 parent 0205a66
@pokeb authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 Classes/ASIDataDecompressor.m
  2. +1 −1  Classes/ASIHTTPRequest.m
View
4 Classes/ASIDataDecompressor.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
2  Classes/ASIHTTPRequest.m
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.