diff options
author | David Robillard <d@drobilla.net> | 2019-04-09 14:42:46 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-06-21 18:12:04 +0200 |
commit | c9c50ba84127d31e71d61c7ad92e2166e9079dff (patch) | |
tree | e9f25a17537f5f4638c1ed1159d69fa1b088083f /src | |
parent | ff7d07e560eb32c9c10d41d25a7b8ea4cfdf7f69 (diff) | |
download | serd-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')
-rw-r--r-- | src/node.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ }; |