must ... not .. use the improved c++ casts in c code

This commit is contained in:
Jeff Hill
2011-09-01 11:43:14 -06:00
committed by Andrew Johnson
parent f5c374c556
commit c76b800f2a
+1 -1
View File
@@ -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 );
}