This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Variable LONG_TYPE_SIZE and MAX_LONG_TYPE_SIZE
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: Variable LONG_TYPE_SIZE and MAX_LONG_TYPE_SIZE
- From: Richard Henderson <rth at redhat dot com>
- Date: Wed, 15 Aug 2001 00:23:35 -0700
- Cc: gcc at gcc dot gnu dot org
- References: <20010812221312.A3016@lucon.org>
On Sun, Aug 12, 2001 at 10:13:12PM -0700, H . J . Lu wrote:
> except.c:1492: warning: cast from pointer to integer of different size
Fixed thus.
r~
* except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
Index: except.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/except.c,v
retrieving revision 1.184
diff -c -p -d -u -r1.184 except.c
--- except.c 2001/08/13 15:52:18 1.184
+++ except.c 2001/08/15 07:11:50
@@ -1472,7 +1472,7 @@ duplicate_eh_regions (ifun, map)
/* ??? Move from tree.c to tree.h. */
-#define TYPE_HASH(TYPE) ((HOST_WIDE_INT) (TYPE) & 0777777)
+#define TYPE_HASH(TYPE) ((size_t) (TYPE) & 0777777)
static int
t2r_eq (pentry, pdata)