Commit f0dc1414 authored by Matthias Braun's avatar Matthias Braun
Browse files

fix bitfield output missing bytes

parent 0f068c12
...@@ -424,6 +424,7 @@ static void dump_compound_init(obstack_t *obst, entity *ent) ...@@ -424,6 +424,7 @@ static void dump_compound_init(obstack_t *obst, entity *ent)
get_entity_ld_name(ent)); get_entity_ld_name(ent));
} }
value_len += offset_bits;
for(j = 0; j < 4 && value_len > 0; ++j) { for(j = 0; j < 4 && value_len > 0; ++j) {
assert(offset + j < type_size); assert(offset + j < type_size);
assert(vals[offset + j].kind == BITFIELD || vals[offset + j].v.value == NULL); assert(vals[offset + j].kind == BITFIELD || vals[offset + j].v.value == NULL);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment