Skip to content
Snippets Groups Projects
Commit 04985836 authored by Nathan Strong's avatar Nathan Strong Committed by Serge Lamikhov-Center
Browse files

fix mismatched allocator warning

parent ac542cbb
Branches
No related tags found
No related merge requests found
......@@ -223,7 +223,7 @@ template <class T> class section_impl : public section
// reallocate data to be the correct size
data.reset( new (std::nothrow) char[size_t(uncompressed_size) + 1]);
// create a buffer to hold the compressed bits
auto compressed_data = std::unique_ptr<char>(new char[size_t(size)]);
auto compressed_data = std::unique_ptr<char[]>(new char[size_t(size)]);
if( data == nullptr || compressed_data == nullptr) {
std::cerr << "failed to allocate memory buffers for decompression" << std::endl;
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment