Skip to content

Commit

Permalink
Replace uint64_t by 8 in alignas specifier (#3752)
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sanchez-Mateos <raul@eprosima.com>
(cherry picked from commit 9ae27f1)
  • Loading branch information
rsanchez15 authored and mergify[bot] committed Aug 1, 2023
1 parent ad49cdf commit 70a43f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cpp/rtps/DataSharing/DataSharingNotification.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,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;
Expand Down
4 changes: 2 additions & 2 deletions src/cpp/rtps/DataSharing/DataSharingPayloadPool.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 70a43f5

Please sign in to comment.