Correctly identify homogeneous float aggregate
First related symbol of a structure justs indicate its size. This first member is the second related symbol.
This commit is contained in:
@ -776,7 +776,7 @@ static int is_hgen_float_aggr(CType *type)
|
|||||||
struct Sym *ref;
|
struct Sym *ref;
|
||||||
int btype, nb_fields = 0;
|
int btype, nb_fields = 0;
|
||||||
|
|
||||||
ref = type->ref;
|
ref = type->ref->next;
|
||||||
btype = ref->type.t & VT_BTYPE;
|
btype = ref->type.t & VT_BTYPE;
|
||||||
if (btype == VT_FLOAT || btype == VT_DOUBLE) {
|
if (btype == VT_FLOAT || btype == VT_DOUBLE) {
|
||||||
for(; ref && btype == (ref->type.t & VT_BTYPE); ref = ref->next, nb_fields++);
|
for(; ref && btype == (ref->type.t & VT_BTYPE); ref = ref->next, nb_fields++);
|
||||||
|
|||||||
Reference in New Issue
Block a user