Skip to content

Commit 74b5fcb

Browse files
committed
cleanup: remove 4-byte hole in struct schema_field_value
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.
1 parent eee32f0 commit 74b5fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tarantool_schema.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ enum field_type {
1515

1616
struct schema_field_value {
1717
uint32_t field_number;
18-
char *field_name;
1918
uint32_t field_name_len;
19+
char *field_name;
2020
enum field_type field_type;
2121
};
2222

0 commit comments

Comments
 (0)