From cee3f050cc5fef33a6ff71f97e450e961ea1665c Mon Sep 17 00:00:00 2001 From: Kerstin Keller Date: Fri, 31 Jan 2025 09:48:37 +0100 Subject: [PATCH] Remove cast and change type of clock. --- ecal/core/include/ecal/pubsub/types.h | 2 +- ecal/core/src/pubsub/ecal_subscriber_impl.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ecal/core/include/ecal/pubsub/types.h b/ecal/core/include/ecal/pubsub/types.h index 820a8ef592..d0d0061b99 100644 --- a/ecal/core/include/ecal/pubsub/types.h +++ b/ecal/core/include/ecal/pubsub/types.h @@ -67,7 +67,7 @@ namespace eCAL const void* buffer = nullptr; //!< payload buffer, containing the sent data size_t buffer_size = 0; //!< payload buffer size int64_t send_timestamp = 0; //!< publisher send timestamp in µs - uint64_t send_clock = 0; //!< publisher send clock. Each publisher increases the counter by one, every time a message is sent. It can be used to detect message drops. + int64_t send_clock = 0; //!< publisher send clock. Each publisher increases the counter by one, every time a message is sent. It can be used to detect message drops. }; /** diff --git a/ecal/core/src/pubsub/ecal_subscriber_impl.cpp b/ecal/core/src/pubsub/ecal_subscriber_impl.cpp index cb23a2bf7d..931332af30 100644 --- a/ecal/core/src/pubsub/ecal_subscriber_impl.cpp +++ b/ecal/core/src/pubsub/ecal_subscriber_impl.cpp @@ -534,7 +534,7 @@ namespace eCAL // prepare data struct SReceiveCallbackData cb_data; cb_data.buffer = static_cast(payload_); - cb_data.buffer_size = long(size_); + cb_data.buffer_size = size_; cb_data.send_timestamp = time_; cb_data.send_clock = clock_;