[LIB]: Expand the size of offset field for class_member to 32-bit.

The offset of a member in a class can be higher than 64KB (even if it doesn't
sound sane), without this change, if the offset overflowed, you would have got
the bitfield warning.

Committer note: I haven't bumped the SONAME because I haven't released yet the
		0.0 release, so there is not yet a stable ABI.

Signed-off-by: Diego "Flameeyes" Pettenò <flameeyes@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
This commit is contained in:
Diego "Flameeyes" Pettenò 2007-04-01 22:08:21 -03:00 committed by Arnaldo Carvalho de Melo
parent a27a17088f
commit 18d620ee3c
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ static inline struct array_type *tag__array_type(const struct tag *self)
struct class_member {
struct tag tag;
char *name;
uint16_t offset;
uint32_t offset;
uint8_t bit_offset;
uint8_t bit_size;
uint8_t bit_hole; /* If there is a bit hole before the next