From 72b0caa0ca029b83a5a1ad87d9035faea7897c72 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 13 Apr 2019 18:47:36 +0100 Subject: Fix node alignment on 32-bit ARM --- src/reader.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/reader.c') diff --git a/src/reader.c b/src/reader.c index 95508849..50784ffc 100644 --- a/src/reader.c +++ b/src/reader.c @@ -87,6 +87,7 @@ push_node_padded(SerdReader* reader, size_t maxlen, void* mem = serd_stack_push_aligned( &reader->stack, sizeof(SerdNode) + maxlen + 1, sizeof(SerdNode)); + assert((intptr_t)mem % sizeof(SerdNode) == 0); if (!mem) { return NULL; } -- cgit v1.2.1