From 8c7d1a1548694769cf622ed7787ad5327d143587 Mon Sep 17 00:00:00 2001 From: "Hunter L. Allen" Date: Thu, 31 Aug 2017 16:13:10 -0400 Subject: [PATCH] Revert space variable change. --- .../include/rmw_fastrtps_cpp/TypeSupport_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rmw_fastrtps_cpp/include/rmw_fastrtps_cpp/TypeSupport_impl.hpp b/rmw_fastrtps_cpp/include/rmw_fastrtps_cpp/TypeSupport_impl.hpp index 6b454f0c2..a9efe8c4f 100644 --- a/rmw_fastrtps_cpp/include/rmw_fastrtps_cpp/TypeSupport_impl.hpp +++ b/rmw_fastrtps_cpp/include/rmw_fastrtps_cpp/TypeSupport_impl.hpp @@ -116,7 +116,7 @@ void TypeSupport::deleteData(void * data) assert(data); delete static_cast(data); } - +gg static inline void * align_(size_t __align, size_t __size, void * & __ptr, size_t & __space) noexcept { @@ -424,7 +424,7 @@ bool TypeSupport::serializeROSmessage( size_t array_size = 0; size_t sub_members_size = sub_members->size_of_; size_t max_align = calculateMaxAlign(sub_members); - size_t space = 1; /* start with 1 byte */ + size_t space = 100; if (member->array_size_ && !member->is_upper_bound_) { subros_message = field;