diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-03-12 16:22:03 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-03-12 16:22:03 (GMT) |
commit | 410d721ec495e29e15d45cbd921a9bb59133973d (patch) | |
tree | 9d1dfd3f5d85ecdf41ba1296b518b65c269edc2a /Swiften/Compress | |
parent | b5d0be6e0d5b57effc5b7883d6e6e72aa2a1f062 (diff) | |
download | swift-contrib-410d721ec495e29e15d45cbd921a9bb59133973d.zip swift-contrib-410d721ec495e29e15d45cbd921a9bb59133973d.tar.bz2 |
Make ByteArray an std::vector<unsigned char>.
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); |