Skip to content

Commit

Permalink
Remove warnings on windows
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo González <ricardo@richiware.dev>
  • Loading branch information
richiware authored and MiguelCompany committed Oct 4, 2024
1 parent 81ad0af commit 4836b0a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rmw_fastrtps_shared_cpp/src/TypeSupport_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<eprosima::fastcdr::Cdr *>(ser_data->data);
ser_size = ser->get_serialized_data_length();
ser_size = static_cast<uint32_t>(ser->get_serialized_data_length());
} else {
ser_size = this->getEstimatedSerializedSize(ser_data->data, ser_data->impl);
ser_size = static_cast<uint32_t>(this->getEstimatedSerializedSize(
ser_data->data,
ser_data->impl));
}
return ser_size;
}
Expand Down

0 comments on commit 4836b0a

Please sign in to comment.