From da98b803f801e88a566fdd30f9494383bb5ab533 Mon Sep 17 00:00:00 2001 From: Alejandro Hernandez Cordero Date: Thu, 5 Dec 2024 12:36:41 +0100 Subject: [PATCH] Removed some warnings Signed-off-by: Alejandro Hernandez Cordero --- rmw_zenoh_cpp/src/rmw_event.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/rmw_zenoh_cpp/src/rmw_event.cpp b/rmw_zenoh_cpp/src/rmw_event.cpp index 63de9bcb..68117032 100644 --- a/rmw_zenoh_cpp/src/rmw_event.cpp +++ b/rmw_zenoh_cpp/src/rmw_event.cpp @@ -220,16 +220,16 @@ rmw_take_event( case rmw_zenoh_cpp::ZENOH_EVENT_REQUESTED_QOS_INCOMPATIBLE: { auto ei = static_cast(event_info); RMW_CHECK_ARGUMENT_FOR_NULL(ei, RMW_RET_INVALID_ARGUMENT); - ei->total_count = st->total_count; - ei->total_count_change = st->total_count_change; + ei->total_count = static_cast(st->total_count); + ei->total_count_change = static_cast(st->total_count_change); *taken = true; return RMW_RET_OK; } case rmw_zenoh_cpp::ZENOH_EVENT_MESSAGE_LOST: { auto ei = static_cast(event_info); RMW_CHECK_ARGUMENT_FOR_NULL(ei, RMW_RET_INVALID_ARGUMENT); - ei->total_count = st->total_count; - ei->total_count_change = st->total_count_change; + ei->total_count = static_cast(st->total_count); + ei->total_count_change = static_cast(st->total_count_change); *taken = true; return RMW_RET_OK; } @@ -247,8 +247,8 @@ rmw_take_event( case rmw_zenoh_cpp::ZENOH_EVENT_OFFERED_QOS_INCOMPATIBLE: { auto ei = static_cast(event_info); RMW_CHECK_ARGUMENT_FOR_NULL(ei, RMW_RET_INVALID_ARGUMENT); - ei->total_count = st->total_count; - ei->total_count_change = st->total_count_change; + ei->total_count = static_cast(st->total_count); + ei->total_count_change = static_cast(st->total_count_change); *taken = true; return RMW_RET_OK; }