From 9ae27f174c1a33bf539c589ce2f1d6630052d1b0 Mon Sep 17 00:00:00 2001 From: Raul Sanchez-Mateos Lizano Date: Tue, 1 Aug 2023 07:41:55 +0200 Subject: [PATCH] Replace uint64_t by 8 in alignas specifier (#3752) Signed-off-by: Raul Sanchez-Mateos --- src/cpp/rtps/DataSharing/DataSharingNotification.hpp | 2 +- src/cpp/rtps/DataSharing/DataSharingPayloadPool.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cpp/rtps/DataSharing/DataSharingNotification.hpp b/src/cpp/rtps/DataSharing/DataSharingNotification.hpp index 5ebe0d242cc..401100cfa59 100644 --- a/src/cpp/rtps/DataSharing/DataSharingNotification.hpp +++ b/src/cpp/rtps/DataSharing/DataSharingNotification.hpp @@ -100,7 +100,7 @@ class DataSharingNotification #pragma warning(push) #pragma warning(disable:4324) - struct alignas (uint64_t) Notification + struct alignas (8) Notification { //! CV to wait for new notifications Segment::condition_variable notification_cv; diff --git a/src/cpp/rtps/DataSharing/DataSharingPayloadPool.hpp b/src/cpp/rtps/DataSharing/DataSharingPayloadPool.hpp index 5b3dc66c7e3..f97d7a0cb8d 100644 --- a/src/cpp/rtps/DataSharing/DataSharingPayloadPool.hpp +++ b/src/cpp/rtps/DataSharing/DataSharingPayloadPool.hpp @@ -142,7 +142,7 @@ class DataSharingPayloadPool : public IPayloadPool #pragma warning(push) #pragma warning(disable:4324) - class alignas (uint64_t) PayloadNode + class alignas (8) PayloadNode { struct PayloadNodeMetaData @@ -338,7 +338,7 @@ class DataSharingPayloadPool : public IPayloadPool }; - struct alignas (uint64_t) PoolDescriptor + struct alignas (8) PoolDescriptor { uint32_t history_size; //< Number of payloads in the history uint64_t notified_begin; //< The index of the oldest history entry already notified (ready to read)