Skip to content

Commit

Permalink
cleanup: remove 4-byte hole in struct schema_field_value
Browse files Browse the repository at this point in the history
Alignment of structure members to "natural" address boundaries will
cause to a 4-byte gap between field_name and field_name_len on
64-bit platform. If the members will be swapped, the gap is gone.
  • Loading branch information
LeonidVas committed Jul 17, 2020
1 parent eee32f0 commit 74b5fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tarantool_schema.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ enum field_type {

struct schema_field_value {
uint32_t field_number;
char *field_name;
uint32_t field_name_len;
char *field_name;
enum field_type field_type;
};

Expand Down

0 comments on commit 74b5fcb

Please sign in to comment.