From 04985836db432703f4af9893933aea6684be7566 Mon Sep 17 00:00:00 2001 From: Nathan Strong Date: Tue, 25 Oct 2022 22:41:53 -0700 Subject: [PATCH] fix mismatched allocator warning --- elfio/elfio_section.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elfio/elfio_section.hpp b/elfio/elfio_section.hpp index e798fec..b036e6a 100644 --- a/elfio/elfio_section.hpp +++ b/elfio/elfio_section.hpp @@ -223,7 +223,7 @@ template 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(new char[size_t(size)]); + auto compressed_data = std::unique_ptr(new char[size_t(size)]); if( data == nullptr || compressed_data == nullptr) { std::cerr << "failed to allocate memory buffers for decompression" << std::endl; return false;