From ae6903c07c3cd4b6fcdcb25201baab9517c2211e Mon Sep 17 00:00:00 2001 From: Attila Kovacs Date: Tue, 10 Dec 2024 13:31:53 +0100 Subject: [PATCH] Platform independent 32-bit flag space --- include/xchange.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/xchange.h b/include/xchange.h index a4d3798..086d6f1 100644 --- a/include/xchange.h +++ b/include/xchange.h @@ -13,6 +13,7 @@ #ifndef XCHANGE_H_ #define XCHANGE_H_ +#include /// API major version #define XCHANGE_MAJOR_VERSION 0 @@ -141,7 +142,7 @@ typedef struct XField { XType type; ///< The underlyng data type int ndim; ///< The dimensionality of the data int sizes[X_MAX_DIMS]; ///< The sizes along each dimension - int flags; ///< (optional) flags that specific data exchange mechanism may use, e.g. for BSON subtype. + uint32_t flags; ///< (optional) flags that specific data exchange mechanism may use, e.g. for BSON subtype. boolean isSerialized; ///< Whether the fields is stored in serialized (string) format. struct XField *next; ///< Pointer to the next linked element (if inside an XStructure). } XField;