Add missing explicit const_cast

This commit is contained in:
Johan Jansen committed 2019-09-26 22:20:33 +02:00
1 parent a7052cba22
commit 94fc229c44
1 file changed
+1 -1
+1 -1
View File
@@ -1267,7 +1267,7 @@ inline bool compress(std::string &content) {
if (ret != Z_OK) { return false; }
strm.avail_in = content.size();
strm.next_in = reinterpret_cast<Bytef*>(content.data());
strm.next_in = const_cast<Bytef*>(reinterpret_cast<const Bytef*>(content.data()));
std::string compressed;