Skip to content

Conversation

@mikee47
Copy link
Owner

@mikee47 mikee47 commented Jan 13, 2026

Issue #77 has arisen as a consequence of space-optimisation. Range information is stored in the PropertyInfo::Variant union as two 32-bit values for regular integers, but as a pointer to the information for 64-bit values. This PR fixes that inconsistency so that all range information is stored indirectly. This also reduces flash storage slightly since the size of this union is reduced from 8 to 4 bytes. The Range for all properties are now defined in the parent object definition.

Reduces Variant from 8 to 4 bytes
Variant information stored in parent object
@mikee47 mikee47 changed the title Store 64-bit constant property values directly Be consistent storing property variant information Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants