Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2011-09-19 05:32:35 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
0205a66ee37d243df617a9b9ce122ce8e54c90f0
0205a66e
2 parents
8fa24f25
dd83a404
Merge pull request #248 from artgillespie/master
Small fix to remove C++ compile errors.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
Classes/ASIDataCompressor.m
Classes/ASIDataCompressor.m
View file @
0205a66
...
...
@@ -88,7 +88,7 @@
[
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
=
deflate
(
&
zStream
,
shouldFinish
?
Z_FINISH
:
Z_NO_FLUSH
);
...
...
@@ -184,7 +184,7 @@
}
// Write the deflated data out to the destination file
[
outputStream
write
:[
outputData
bytes
]
maxLength
:[
outputData
length
]];
[
outputStream
write
:
(
const
uint8_t
*
)
[
outputData
bytes
]
maxLength
:[
outputData
length
]];
// Make sure nothing went wrong
if
([
inputStream
streamStatus
]
==
NSStreamEventErrorOccurred
)
{
...
...
Please
register
or
login
to post a comment