This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Variable LONG_TYPE_SIZE and MAX_LONG_TYPE_SIZE


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]