Skip to content

Commit 39f04b9

Browse files
mikela-valvezpostfacto
authored andcommitted
Fix Xcode-16.3 warning
P4:10119277 (cherry picked from commit bf9df17)
1 parent 8f36871 commit 39f04b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/steamnetworkingsockets/clientlib/steamnetworkingsockets_lowlevel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class CRecvPacketCallback
7474
/// A template constructor so you can use type safe context and avoid messy casting
7575
template< typename T >
7676
inline CRecvPacketCallback( void (*fnCallback)( const RecvPktInfo_t &info, T context ), T context )
77-
: m_fnCallback ( reinterpret_cast< FCallbackRecvPacket>( fnCallback ) )
77+
: m_fnCallback ( reinterpret_cast< FCallbackRecvPacket>( reinterpret_cast< void * >( fnCallback ) ) )
7878
, m_pContext( reinterpret_cast< void * >( context ) )
7979
{
8080
COMPILE_TIME_ASSERT( sizeof(T) == sizeof(void*) );

0 commit comments

Comments
 (0)