Skip to content

Commit

Permalink
fixup! Optimize PublisherData::publish
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzypixelz committed Nov 20, 2024
1 parent 29725e1 commit f7716bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmw_zenoh_cpp/src/detail/serialization_buffer_pool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SerializationBufferPool
available_buffers_.pop_back();
if (buffer.size < size) {
buffer.data = static_cast<uint8_t *>(allocator->reallocate(
buffer.data, size, allocator->state));
buffer.data, size, allocator->state));
assert(buffer.data); // FIXME(fuzzypixelz): handle error
buffer.size = size;
}
Expand Down

0 comments on commit f7716bf

Please sign in to comment.