mirror of
https://github.com/frida/tinycc
synced 2024-12-25 06:26:49 +03:00
Fix last change
Skipping anonymous bit-fields is correct, but not other anonymous ones like unions or structs.
This commit is contained in:
parent
f775d68725
commit
4ce73354fc
2
tccgen.c
2
tccgen.c
@ -6075,7 +6075,7 @@ static void decl_designator(CType *type, Section *sec, unsigned long c,
|
||||
c += index * type_size(type, &align);
|
||||
} else {
|
||||
f = *cur_field;
|
||||
while (f && (f->v & SYM_FIRST_ANOM))
|
||||
while (f && (f->v & SYM_FIRST_ANOM) && (f->type.t & VT_BITFIELD))
|
||||
*cur_field = f = f->next;
|
||||
if (!f)
|
||||
tcc_error("too many field init");
|
||||
|
Loading…
Reference in New Issue
Block a user