diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-11-03 10:17:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:03:55 -0700 |
commit | 26fc30e19060b6fba8fc4d44de2759871c171a8b (patch) | |
tree | bbaefaaad9fb60bf9f1922162341fccb1113291a /symbol.c | |
parent | [PATCH] Linearize initializer (diff) | |
download | sparse-26fc30e19060b6fba8fc4d44de2759871c171a8b.tar.gz sparse-26fc30e19060b6fba8fc4d44de2759871c171a8b.tar.bz2 sparse-26fc30e19060b6fba8fc4d44de2759871c171a8b.zip |
Examine bitfield symbols properly.
They have their fieldwidth as their bit_size. They do
end up getting promoted to their base type on most usage,
but that doesn't change their fundamental properties.
Diffstat (limited to 'symbol.c')
-rw-r--r-- | symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -223,7 +223,7 @@ static struct symbol *examine_bitfield_type(struct symbol *sym) alignment = base_type->ctype.alignment; if (!sym->ctype.alignment) sym->ctype.alignment = alignment; - sym->bit_size = bit_size; + sym->bit_size = sym->fieldwidth; return sym; } |