mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-22 11:41:38 +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)
|
if (s->sy_type != sy_var)
|
||||||
continue;
|
continue;
|
||||||
if (su == 's') {
|
if (su == 's') {
|
||||||
|
symtab->size = RUP (symtab->size, s->type->alignment);
|
||||||
s->s.offset = symtab->size;
|
s->s.offset = symtab->size;
|
||||||
symtab->size += type_size (s->type);
|
symtab->size += type_size (s->type);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue