Ben Copsey

Merge pull request #248 from artgillespie/master

Small fix to remove C++ compile errors.
@@ -88,7 +88,7 @@ @@ -88,7 +88,7 @@
88 [outputData increaseLengthBy:halfLength]; 88 [outputData increaseLengthBy:halfLength];
89 } 89 }
90 90
91 - zStream.next_out = [outputData mutableBytes] + zStream.total_out-bytesProcessedAlready; 91 + zStream.next_out = (Bytef*)[outputData mutableBytes] + zStream.total_out-bytesProcessedAlready;
92 zStream.avail_out = (unsigned int)([outputData length] - (zStream.total_out-bytesProcessedAlready)); 92 zStream.avail_out = (unsigned int)([outputData length] - (zStream.total_out-bytesProcessedAlready));
93 status = deflate(&zStream, shouldFinish ? Z_FINISH : Z_NO_FLUSH); 93 status = deflate(&zStream, shouldFinish ? Z_FINISH : Z_NO_FLUSH);
94 94
@@ -184,7 +184,7 @@ @@ -184,7 +184,7 @@
184 } 184 }
185 185
186 // Write the deflated data out to the destination file 186 // Write the deflated data out to the destination file
187 - [outputStream write:[outputData bytes] maxLength:[outputData length]]; 187 + [outputStream write:(const uint8_t *)[outputData bytes] maxLength:[outputData length]];
188 188
189 // Make sure nothing went wrong 189 // Make sure nothing went wrong
190 if ([inputStream streamStatus] == NSStreamEventErrorOccurred) { 190 if ([inputStream streamStatus] == NSStreamEventErrorOccurred) {