diff options
author | David Robillard <d@drobilla.net> | 2019-04-09 14:42:46 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 19:48:23 +0200 |
commit | 00eec656ceb6d2ce7807d8da57fcad41367fa490 (patch) | |
tree | 1e18f3e4798ba308dbf2b5def16ec67e79e1b6b7 | |
parent | d4a61bf102a9d62ea2ef9ed886cae5f666ea7607 (diff) | |
download | serd-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ }; |