aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-04-09 14:42:46 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:12:04 +0200
commitc9c50ba84127d31e71d61c7ad92e2166e9079dff (patch)
treee9f25a17537f5f4638c1ed1159d69fa1b088083f /src/node.h
parentff7d07e560eb32c9c10d41d25a7b8ea4cfdf7f69 (diff)
downloadserd-c9c50ba84127d31e71d61c7ad92e2166e9079dff.tar.gz
serd-c9c50ba84127d31e71d61c7ad92e2166e9079dff.tar.bz2
serd-c9c50ba84127d31e71d61c7ad92e2166e9079dff.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.
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node.h b/src/node.h
index db5d25e2..941f3018 100644
--- a/src/node.h
+++ b/src/node.h
@@ -21,9 +21,10 @@
#include <stdbool.h>
#include <stddef.h>
+#include <stdint.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 */
};