Skip to content

Commit

Permalink
add alignment guarantees to static char arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
mkirchner committed Jan 5, 2024
1 parent a0eb2a4 commit 793d01e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_hamt.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,8 +831,8 @@ MU_TEST_CASE(test_persistent_setget_one)
t = hamt_create(my_keyhash_string, my_keycmp_string,
&hamt_allocator_default);
/* add a single key */
char key[] = "the_key";
char value[] = "the_value";
char key[] __attribute__ ((aligned (8))) = "the_key";
char value[] __attribute__ ((aligned (8))) = "the_value";
t = hamt_pset(t, key, value);
MU_ASSERT(hamt_size(t) == 1, "wrong size after set");
/* make sure we can find it */
Expand Down

0 comments on commit 793d01e

Please sign in to comment.