* include/bits/atomic_0.h (_ATOMIC_CMPEXCHNG_): Use C-style cast.
authorJason Merrill <jason@redhat.com>
Tue, 2 Nov 2010 17:39:59 +0000 (13:39 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 2 Nov 2010 17:39:59 +0000 (13:39 -0400)
From-SVN: r166206

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/atomic_0.h

index e2cfdaf9f4dca0ea2af23b4a148d4990f8bc34d2..7de6bcef4e8872a6c8c65346ac82ba6640634c58 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-02  Jason Merrill  <jason@redhat.com>
+
+       * include/bits/atomic_0.h (_ATOMIC_CMPEXCHNG_): Use C-style cast.
+
 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
        PR target/45693
index cd73e43caefaad2e765c7afcf645c74e0b35e639..8daf4160bad54dc43135edc84c506801288c7b0c 100644 (file)
@@ -98,7 +98,7 @@ namespace __atomic0
     __i_type __t = *__p;                                                  \
     if (*__q == __t)                                                      \
     {                                                                      \
-      *__p = const_cast<__i_type>(__v);                                           \
+      *__p = (__i_type)__v;                                            \
       __r = true;                                                          \
     }                                                                     \
     else { *__q = __t; __r = false; }                                     \