diff --git a/src/misc/Compression.cpp b/src/misc/Compression.cpp index 6681dc5..4a26e77 100644 --- a/src/misc/Compression.cpp +++ b/src/misc/Compression.cpp @@ -10,14 +10,14 @@ namespace utils { std::uint64_t Inflate(const std::string& source, std::string& dest) { std::size_t size; - uncompress(reinterpret_cast(dest.data()), &size, reinterpret_cast(source.c_str()), source.length()); + uncompress(reinterpret_cast(dest.data()), reinterpret_cast(&size), reinterpret_cast(source.c_str()), source.length()); return size; } std::uint64_t Deflate(const std::string& source, std::string& dest) { std::size_t size; dest.resize(source.size()); // Resize for the compressed data to fit into - compress(reinterpret_cast(dest.data()), &size, reinterpret_cast(source.c_str()), source.length()); + compress(reinterpret_cast(dest.data()), reinterpret_cast(&size), reinterpret_cast(source.c_str()), source.length()); dest.resize(size); // Resize to cut useless data return size; }