aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-04-09 14:42:46 +0200
committerDavid Robillard <d@drobilla.net>2019-04-13 19:48:23 +0200
commit00eec656ceb6d2ce7807d8da57fcad41367fa490 (patch)
tree1e18f3e4798ba308dbf2b5def16ec67e79e1b6b7
parentd4a61bf102a9d62ea2ef9ed886cae5f666ea7607 (diff)
downloadserd-00eec656ceb6d2ce7807d8da57fcad41367fa490.tar.gz
serd-00eec656ceb6d2ce7807d8da57fcad41367fa490.tar.bz2
serd-00eec656ceb6d2ce7807d8da57fcad41367fa490.zip
Make node size always 64 bits
This ensures that sizeof(SerdNode) is a power of two, even on 32-bit platforms, which is required by posix_memalign.
-rw-r--r--src/node.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.h b/src/node.h
index afe3d93f..2a48bc8b 100644
--- a/src/node.h
+++ b/src/node.h
@@ -22,7 +22,7 @@
#include <stddef.h>
struct SerdNodeImpl {
- size_t n_bytes; /**< Size in bytes (not including null) */
+ uint64_t n_bytes; /**< Size in bytes (not including null) */
SerdNodeFlags flags; /**< Node flags (e.g. string properties) */
SerdNodeType type; /**< Node type */
};