From 00eec656ceb6d2ce7807d8da57fcad41367fa490 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 9 Apr 2019 14:42:46 +0200 Subject: 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. --- src/node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.h b/src/node.h index afe3d93f..2a48bc8b 100644 --- a/src/node.h +++ b/src/node.h @@ -22,7 +22,7 @@ #include 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 */ }; -- cgit v1.2.1