From dd72577759f146041571de60e826765d073e1f06 Mon Sep 17 00:00:00 2001 From: yuanbin Date: Fri, 11 Jun 2010 21:18:05 +0800 Subject: [PATCH] tccgen: initial the last member of union --- tccgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tccgen.c b/tccgen.c index 914afe12..aaa18624 100644 --- a/tccgen.c +++ b/tccgen.c @@ -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; }