Use 64 bit for type member in struct value
Now all the members are aligned to 64 bits, and there is no need to pack the structure.
This commit is contained in:
parent
82f1cc287d
commit
2442d5decb
@ -15,10 +15,9 @@ enum value_type {
|
|||||||
VALUE_DOUBLE
|
VALUE_DOUBLE
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Packed allows the struct to be hashable, as we don't have any
|
/* Ensure no padding holes */
|
||||||
* unitialized data */
|
struct value {
|
||||||
struct __attribute__((packed)) value {
|
int64_t type;
|
||||||
enum value_type type;
|
|
||||||
union {
|
union {
|
||||||
int64_t i;
|
int64_t i;
|
||||||
double d;
|
double d;
|
||||||
|
Loading…
Reference in New Issue
Block a user