From 15dce0c9432ab28d6e27e4118dd2bb990d2d6e60 Mon Sep 17 00:00:00 2001
From: ceriel <none@none>
Date: Wed, 22 Jul 1992 15:44:47 +0000
Subject: [PATCH] Fix in "bits_in_type" variable

---
 lang/cem/cemcom.ansi/struct.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/lang/cem/cemcom.ansi/struct.c b/lang/cem/cemcom.ansi/struct.c
index 5ee6e509a..939622da0 100644
--- a/lang/cem/cemcom.ansi/struct.c
+++ b/lang/cem/cemcom.ansi/struct.c
@@ -329,11 +329,7 @@ add_field(szp, fd, fdtpp, idf, stp)
 		an explicit alignment is given, a new address is needed.
 		Note that the fields are packed into machine words.
 	*/
-#ifdef word_size
-#define bits_in_type	((int)(8*word_size))
-#else
-	int bits_in_type = (int)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 */