dwarves_reorganize: Fix class__demote_bitfields, we need power of two bytes

There is no such thing as a 3 bytes sized base type. Round it up to 4.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-08-16 12:26:33 -03:00
parent dffd3d4ee7
commit f0435286c0
1 changed files with 1 additions and 0 deletions

View File

@ -533,6 +533,7 @@ static int class__demote_bitfields(struct class *class, const struct cu *cu,
size = member->byte_size;
bytes_needed = (current_bitfield_size + 7) / 8;
bytes_needed = roundup(bytes_needed, 2);
if (bytes_needed == size)
continue;