* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
authorRoland McGrath <roland@gnu.org>
Wed, 11 Jan 2006 01:17:36 +0000 (01:17 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 11 Jan 2006 01:17:36 +0000 (01:17 +0000)
(PTR_MANGLE): Fix cast.

ChangeLog
sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h

index f83690d..c3aa24e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2006-01-10  Roland McGrath  <roland@redhat.com>
 
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
+       (PTR_MANGLE): Fix cast.
+
        * timezone/test-tz.c: Revert last change, updating to match
        tzdata2005r definition of "MST".
 
index 858b5c4..fd67f56 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992,1997,1998,1999,2000,2001,2002,2003,2004,2005
+/* Copyright (C) 1992,1997,1998,1999,2000,2001,2002,2003,2004,2005,2006
        Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
 #  define PTR_DEMANGLE2(reg, tmpreg) PTR_MANGLE2 (reg, tmpreg)
 # else
 #  define PTR_MANGLE(var) \
-  (var) = (void *) ((uintptr_t) (var) ^ THREAD_GET_POINTER_GUARD ())
+  (var) = (__typeof (var)) ((uintptr_t) (var) ^ THREAD_GET_POINTER_GUARD ())
 #  define PTR_DEMANGLE(var)    PTR_MANGLE (var)
 # endif
 #endif