Grr, another fix for bitfields, this time for a sequence of
bitfields, i.e. the offset changes from one bitfield to another. Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
parent
e45d94f9de
commit
a4e260fc1a
3
pahole.c
3
pahole.c
|
@ -295,7 +295,8 @@ void class__print(struct class *self)
|
|||
* check for bitfields, accounting only the first
|
||||
* field.
|
||||
*/
|
||||
if (pos->bit_size == 0 || last_bit_size == 0)
|
||||
if (last_offset != pos->offset ||
|
||||
pos->bit_size == 0 || last_bit_size == 0)
|
||||
sum += last_size;
|
||||
last_offset = pos->offset;
|
||||
last_bit_size = pos->bit_size;
|
||||
|
|
Loading…
Reference in New Issue