Skip to content

Commit

Permalink
iox-eclipse-iceoryx#2301 Fix alignment of ChunkHeader for 32 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Jun 7, 2024
1 parent 4794488 commit b5ce6da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion iceoryx_posh/include/iceoryx_posh/mepoo/chunk_header.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ struct NoUserHeader
{
};

struct ChunkHeader
// NOTE: alignas(8) is required for 32 bit builds to ensure an alignment on 8 byte boundaries; on some 32 bit platforms
// uint64_t is aligned to 4 bytes
struct alignas(8) ChunkHeader
{
using UserPayloadOffset_t = uint32_t;

Expand Down

0 comments on commit b5ce6da

Please sign in to comment.