diff --git a/rmw_zenoh_cpp/src/detail/serialization_buffer_pool.hpp b/rmw_zenoh_cpp/src/detail/serialization_buffer_pool.hpp index dd64340a..e4214025 100644 --- a/rmw_zenoh_cpp/src/detail/serialization_buffer_pool.hpp +++ b/rmw_zenoh_cpp/src/detail/serialization_buffer_pool.hpp @@ -43,7 +43,7 @@ class SerializationBufferPool available_buffers_.pop_back(); if (buffer.size < size) { buffer.data = static_cast(allocator->reallocate( - buffer.data, size, allocator->state)); + buffer.data, size, allocator->state)); assert(buffer.data); // FIXME(fuzzypixelz): handle error buffer.size = size; }