Fix in "bits_in_type" variable

This commit is contained in:
ceriel 1992-07-22 15:44:47 +00:00
parent a56e1f25ff
commit 15dce0c943

View file

@ -329,11 +329,7 @@ add_field(szp, fd, fdtpp, idf, stp)
an explicit alignment is given, a new address is needed. an explicit alignment is given, a new address is needed.
Note that the fields are packed into machine words. Note that the fields are packed into machine words.
*/ */
#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 = (int)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 */