mirror of git://gcc.gnu.org/git/gcc.git
* include/bits/atomic_0.h (_ATOMIC_CMPEXCHNG_): Use C-style cast.
From-SVN: r166206
This commit is contained in:
parent
e69afb29dc
commit
6c0daa3ce1
|
|
@ -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>
|
2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
PR target/45693
|
PR target/45693
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ namespace __atomic0
|
||||||
__i_type __t = *__p; \
|
__i_type __t = *__p; \
|
||||||
if (*__q == __t) \
|
if (*__q == __t) \
|
||||||
{ \
|
{ \
|
||||||
*__p = const_cast<__i_type>(__v); \
|
*__p = (__i_type)__v; \
|
||||||
__r = true; \
|
__r = true; \
|
||||||
} \
|
} \
|
||||||
else { *__q = __t; __r = false; } \
|
else { *__q = __t; __r = false; } \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue