From f7716bfe6f8f228f91493887edb584c18c27bd00 Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Wed, 20 Nov 2024 14:35:40 +0100 Subject: [PATCH] fixup! Optimize `PublisherData::publish` --- rmw_zenoh_cpp/src/detail/serialization_buffer_pool.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }