Test using packed attribute

This commit is contained in:
2026-01-23 14:32:27 +11:00
parent f9352cf59f
commit 37b92ecd6f
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ typedef struct GroundError {
/* /*
* Stores literal values created in a Ground program. * Stores literal values created in a Ground program.
*/ */
typedef struct GroundValue { typedef struct __attribute__((packed)) GroundValue {
GroundValueType type; GroundValueType type;
struct GroundStruct* customType; struct GroundStruct* customType;
union { union {

View File

@@ -60,7 +60,7 @@ typedef struct GroundError {
* createIntGroundValue(), createDoubleGroundValue(), createStringGroundvalue(), * createIntGroundValue(), createDoubleGroundValue(), createStringGroundvalue(),
* createCharGroundValue(), createBoolGroundValue(), freeGroundValue() * createCharGroundValue(), createBoolGroundValue(), freeGroundValue()
*/ */
typedef struct GroundValue { typedef struct __attribute__((packed)) GroundValue {
GroundValueType type; GroundValueType type;
struct GroundStruct* customType; struct GroundStruct* customType;
union { union {