diff options
author | David Robillard <d@drobilla.net> | 2019-04-09 14:42:46 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-20 10:26:55 -0500 |
commit | 93684304265fcd9bef0f588d0e9964918a5cb3db (patch) | |
tree | 5ab871562c539fd6e6cc2b8b63fc2b6e2b4972d5 | |
parent | 570c4da40a76ac9ec8fddfbab202b9290d7d44e5 (diff) | |
download | serd-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ }; |