Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Wiseguy committed Oct 18, 2024
1 parent 46aac7c commit f774691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions o1heap/o1heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ extern "C" {
/// The semantic version number of this distribution.
#define O1HEAP_VERSION_MAJOR 2

/// 16-byte alignment.
#define O1HEAP_ALIGNMENT ((uint32_t)sizeof(uint32_t) * 4U)
/// 16-byte alignment. Would be sizeof(uint32_t) * 4U, but can't use sizeof here because that gives a size_t and this needs to be a 32-bit value.
#define O1HEAP_ALIGNMENT (16U)

/// The definition is private, so the user code can only operate on pointers. This is done to enforce encapsulation.
typedef struct O1HeapInstance O1HeapInstance;
Expand Down

0 comments on commit f774691

Please sign in to comment.