diff options
| author | yuanbin <Administrator@yuan.(none)> | 2010-06-11 21:18:05 +0800 |
|---|---|---|
| committer | yuanbin <Administrator@yuan.(none)> | 2010-06-11 21:18:05 +0800 |
| commit | dd72577759f146041571de60e826765d073e1f06 (patch) | |
| tree | 2f38b4943b294e47e2301b91b42401bc0c6ad2fe | |
| parent | 6709933d78d82f066f3234eb5194a81e5cbf8165 (diff) | |
| download | tinycc-dd72577759f146041571de60e826765d073e1f06.tar.gz tinycc-dd72577759f146041571de60e826765d073e1f06.tar.bz2 | |
tccgen: initial the last member of union
| -rw-r--r-- | tccgen.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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;
}
|
