tccgen: initial the last member of union

master
yuanbin 2010-06-11 21:18:05 +08:00
parent 6709933d78
commit dd72577759
1 changed files with 1 additions and 1 deletions

View File

@ -4864,7 +4864,7 @@ static void decl_initializer(CType *type, Section *sec, unsigned long c,
/* Coo: initial last member of union */
while (f->next && f->next->c==f->c) {
if ((f->type.t&VT_BITFIELD) && (f->next->type.t&VT_BITFIELD)
&& ((f->type.t>>VT_STRUCT_SHIFT)&0x3f)==((f->next->type.t>>VT_STRUCT_SHIFT)&0x3f))
&& ((f->type.t>>VT_STRUCT_SHIFT)&0x3f)!=((f->next->type.t>>VT_STRUCT_SHIFT)&0x3f))
break;
f = f->next;
}