objc-act.c (volatilized_hash): Avoid warnings on 64-bit machines.
authorMike Stump <mrs@mrs.kithrup.com>
Wed, 25 May 2005 15:48:44 +0000 (15:48 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Wed, 25 May 2005 15:48:44 +0000 (15:48 +0000)
        * objc-act.c (volatilized_hash): Avoid warnings on 64-bit
        machines.

From-SVN: r100155

gcc/objc/ChangeLog
gcc/objc/objc-act.c

index 9059696c78add8c588638ee7b79e6ee8521c9db4..a36cce89cd65d448c6ed78646c4b627ffc6682ea 100644 (file)
@@ -1,3 +1,8 @@
+2005-05-25  Mike Stump  <mrs@mrs.kithrup.com>
+
+       * objc-act.c (volatilized_hash): Avoid warnings on 64-bit
+       machines.
+
 2005-05-24  Ziemowit Laski  <zlaski@apple.com>
 
        * objc-act.c (objc_build_struct): New function.
index 0d27a248c47a9000a046060daf1b35806d584ed9..95a848924ed702c437348d07e5187dbda6066a73 100644 (file)
@@ -1247,7 +1247,7 @@ volatilized_hash (const void *ptr)
 {
   tree typ = ((struct volatilized_type *)ptr)->type;
 
-  return (hashval_t) typ;
+  return htab_hash_pointer(typ);
 }
 
 static int