aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-03 10:17:01 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:03:55 -0700
commit26fc30e19060b6fba8fc4d44de2759871c171a8b (patch)
treebbaefaaad9fb60bf9f1922162341fccb1113291a /symbol.c
parent[PATCH] Linearize initializer (diff)
downloadsparse-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/symbol.c b/symbol.c
index a26d311..d6ec4a3 100644
--- a/symbol.c
+++ b/symbol.c
@@ -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;
}