diff options
Diffstat (limited to 'Swiften/Compress')
-rw-r--r-- | Swiften/Compress/ZLibCodecompressor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Compress/ZLibCodecompressor.cpp b/Swiften/Compress/ZLibCodecompressor.cpp index 39f318b..c093fb3 100644 --- a/Swiften/Compress/ZLibCodecompressor.cpp +++ b/Swiften/Compress/ZLibCodecompressor.cpp @@ -27,7 +27,7 @@ ZLibCodecompressor::~ZLibCodecompressor() { ByteArray ZLibCodecompressor::process(const ByteArray& input) { ByteArray output; stream_.avail_in = input.getSize(); - stream_.next_in = reinterpret_cast<Bytef*>(const_cast<char*>(input.getData())); + stream_.next_in = reinterpret_cast<Bytef*>(const_cast<unsigned char*>(input.getData())); int outputPosition = 0; do { output.resize(outputPosition + CHUNK_SIZE); |