gnu compiler required reinterpret_cast<> when converting from void * to another pointer

This commit is contained in:
Jeff Hill
2003-01-07 17:40:53 +00:00
parent eac2ab98be
commit 63d1c92aa7
+1 -1
View File
@@ -1272,7 +1272,7 @@ bool cac::writeNotifyExcep ( epicsGuard < callbackMutex > &, tcpiiu &,
bool cac::exceptionRespAction ( epicsGuard < callbackMutex > & cbMutexIn, tcpiiu & iiu,
const caHdrLargeArray & hdr, void * pMsgBdy )
{
const caHdr * pReq = static_cast < const caHdr * > ( pMsgBdy );
const caHdr * pReq = reinterpret_cast < const caHdr * > ( pMsgBdy );
unsigned bytesSoFar = sizeof ( *pReq );
if ( hdr.m_postsize < bytesSoFar ) {
return false;