public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eb2e0d
)
Fix: always assumed that base type of bitfield had sizeof(int)
author
ceriel
<none@none>
Mon, 27 Jul 1992 13:28:49 +0000
(13:28 +0000)
committer
ceriel
<none@none>
Mon, 27 Jul 1992 13:28:49 +0000
(13:28 +0000)
lang/cem/cemcom/struct.c
patch
|
blob
|
history
diff --git
a/lang/cem/cemcom/struct.c
b/lang/cem/cemcom/struct.c
index
2182ccf
..
9f9d0d7
100644
(file)
--- a/
lang/cem/cemcom/struct.c
+++ b/
lang/cem/cemcom/struct.c
@@
-366,11
+366,7
@@
add_field(szp, fd, fdtpp, idf, stp)
Note that the fields are packed into machine words (according
to the RM.)
*/
-#ifdef word_size
-#define bits_in_type ((int)(8*word_size))
-#else
- int bits_in_type = word_size * 8;
-#endif
+ int bits_in_type = (int) (*fdtpp)->tp_size * 8;
static int field_offset = (arith)0;
static struct type *current_struct = 0;
static int bits_declared; /* nr of bits used in *field_offset */