From 4836b0a87d0e844cc1adb0c7ffe6f2cf61c4146f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Tue, 24 Sep 2024 07:10:11 +0200 Subject: [PATCH] Remove warnings on windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ricardo González --- rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp b/rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp index 3212b4a76..abe7899d7 100644 --- a/rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp +++ b/rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp @@ -179,9 +179,11 @@ uint32_t TypeSupport::calculate_serialized_size( uint32_t ser_size {0}; if (ser_data->type == FASTDDS_SERIALIZED_DATA_TYPE_CDR_BUFFER) { auto ser = static_cast(ser_data->data); - ser_size = ser->get_serialized_data_length(); + ser_size = static_cast(ser->get_serialized_data_length()); } else { - ser_size = this->getEstimatedSerializedSize(ser_data->data, ser_data->impl); + ser_size = static_cast(this->getEstimatedSerializedSize( + ser_data->data, + ser_data->impl)); } return ser_size; }