aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-04-09 14:42:46 +0200
committerDavid Robillard <d@drobilla.net>2019-12-20 10:26:55 -0500
commit93684304265fcd9bef0f588d0e9964918a5cb3db (patch)
tree5ab871562c539fd6e6cc2b8b63fc2b6e2b4972d5
parent570c4da40a76ac9ec8fddfbab202b9290d7d44e5 (diff)
downloadserd-93684304265fcd9bef0f588d0e9964918a5cb3db.tar.gz
serd-93684304265fcd9bef0f588d0e9964918a5cb3db.tar.bz2
serd-93684304265fcd9bef0f588d0e9964918a5cb3db.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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node.h b/src/node.h
index c2f98c6e..32b3e149 100644
--- a/src/node.h
+++ b/src/node.h
@@ -20,9 +20,10 @@
#include "serd/serd.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 */
};