From e22f5099c570a8728109ca6d2fba7350828883a7 Mon Sep 17 00:00:00 2001 From: Alden Hart Date: Sun, 19 Mar 2017 07:14:33 -0400 Subject: [PATCH] Installed union for value --- g2core/config.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/g2core/config.h b/g2core/config.h index 0ab584dd..fc305c11 100644 --- a/g2core/config.h +++ b/g2core/config.h @@ -258,7 +258,11 @@ typedef struct nvObject { // depending on use, not all elements ma int8_t depth; // depth of object in the tree. 0 is root (-1 is invalid) valueType valuetype; // see valueType enum int8_t precision; // decimal precision for reporting (JSON) - float value; // numeric value +// float value; // numeric value + union { + float value; // float values + uint32_t value_int; // uint32 values + }; char group[GROUP_LEN+1]; // group prefix or NUL if not in a group char token[TOKEN_LEN+1]; // full mnemonic token for lookup char (*stringp)[]; // pointer to array of characters from shared character array