mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Keep structure members aligned
This commit is contained in:
parent
2adcad7c84
commit
c43b9681eb
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ build_struct (int su, symbol_t *tag, symtab_t *symtab, type_t *type)
|
|||
if (s->sy_type != sy_var)
|
||||
continue;
|
||||
if (su == 's') {
|
||||
symtab->size = RUP (symtab->size, s->type->alignment);
|
||||
s->s.offset = symtab->size;
|
||||
symtab->size += type_size (s->type);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue