From c76b800f2a878933faeaee28e03202102c74f160 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 1 Sep 2011 11:43:14 -0600 Subject: [PATCH] must ... not .. use the improved c++ casts in c code --- src/libCom/osi/os/solaris/epicsAtomicOSD.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libCom/osi/os/solaris/epicsAtomicOSD.h b/src/libCom/osi/os/solaris/epicsAtomicOSD.h index b591c6b79..c2d58cf47 100644 --- a/src/libCom/osi/os/solaris/epicsAtomicOSD.h +++ b/src/libCom/osi/os/solaris/epicsAtomicOSD.h @@ -51,7 +51,7 @@ EPICS_ATOMIC_INLINE int epicsAtomicCmpAndSwapIntT ( int * pTarget, int oldVal, int newVal ) { STATIC_ASSERT ( sizeof ( int ) == sizeof ( unsigned ) ); - unsigned * const pTarg = reinterpret_cast < unsigned * > ( pTarget ); + unsigned * const pTarg = ( unsigned * ) pTarget; return ( int ) atomic_cas_uint ( pTarg, ( unsigned ) oldVal, ( unsigned ) newVal ); }