Fix: always assumed that base type of bitfield had sizeof(int)
This commit is contained in:
parent
0491d8bb32
commit
fd8beaadfa
@ -366,11 +366,7 @@ add_field(szp, fd, fdtpp, idf, stp)
|
|||||||
Note that the fields are packed into machine words (according
|
Note that the fields are packed into machine words (according
|
||||||
to the RM.)
|
to the RM.)
|
||||||
*/
|
*/
|
||||||
#ifdef word_size
|
int bits_in_type = (int) (*fdtpp)->tp_size * 8;
|
||||||
#define bits_in_type ((int)(8*word_size))
|
|
||||||
#else
|
|
||||||
int bits_in_type = word_size * 8;
|
|
||||||
#endif
|
|
||||||
static int field_offset = (arith)0;
|
static int field_offset = (arith)0;
|
||||||
static struct type *current_struct = 0;
|
static struct type *current_struct = 0;
|
||||||
static int bits_declared; /* nr of bits used in *field_offset */
|
static int bits_declared; /* nr of bits used in *field_offset */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user