From 63d1c92aa7699babf055108f914d077585aff6e9 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 7 Jan 2003 17:40:53 +0000 Subject: [PATCH] gnu compiler required reinterpret_cast<> when converting from void * to another pointer --- src/ca/cac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca/cac.cpp b/src/ca/cac.cpp index 87174d6ed..927aa4018 100644 --- a/src/ca/cac.cpp +++ b/src/ca/cac.cpp @@ -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;