From ab37affd105a542a5cabb35486233942fa564b2d Mon Sep 17 00:00:00 2001 From: kevin Date: Wed, 20 Jan 2021 13:06:57 -0500 Subject: [PATCH] cwAudioDeviceTest.cpp : Change static_cast<> to reinterpet_cast<> --- cwAudioDeviceTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cwAudioDeviceTest.cpp b/cwAudioDeviceTest.cpp index 2f2bb57..cdc4dda 100644 --- a/cwAudioDeviceTest.cpp +++ b/cwAudioDeviceTest.cpp @@ -67,13 +67,13 @@ namespace cw void _cmApPortCb2( void* arg, audioPacket_t* inPktArray, unsigned inPktCnt, audioPacket_t* outPktArray, unsigned outPktCnt ) { - cmApPortTestRecd* p = static_cast(arg); + cmApPortTestRecd* p = reinterpret_cast(arg); for(unsigned i=0; i(inPktArray[i].cbArg)->iCbCnt++; + reinterpret_cast(inPktArray[i].cbArg)->iCbCnt++; for(unsigned i=0; i(outPktArray[i].cbArg)->oCbCnt++; + reinterpret_cast(outPktArray[i].cbArg)->oCbCnt++; if( p->amHz > 0 && outPktCnt > 0 ) {