1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2026-10-10 03:43:06 +08:00

Re-apply Clang 22 memcpy/memset casts superseded by PVKII 1.0 sync

This commit is contained in:
Nicholas Hastings
2026-07-11 13:15:43 -04:00
parent c816072cbf
commit f65b48326a
5 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -480,7 +480,7 @@ inline CVarBitVecBase<BITCOUNTTYPE>::CVarBitVecBase( const CVarBitVecBase<BITCOU
memcpy( m_pInt, from.m_pInt, m_numInts * sizeof(int) );
}
else
memset( this, 0, sizeof( *this ) );
memset( (void *)this, 0, sizeof( *this ) );
}
//-----------------------------------------------------------------------------
@@ -548,7 +548,7 @@ inline bool CVarBitVecBase<BITCOUNTTYPE>::Detach( uint32 **ppBits, int *pNumBits
free( m_pInt );
}
memset( this, 0, sizeof( *this ) );
memset( (void *)this, 0, sizeof( *this ) );
return true;
}
+1 -1
View File
@@ -240,7 +240,7 @@ CBasePhonemeTag::CBasePhonemeTag()
CBasePhonemeTag::CBasePhonemeTag( const CBasePhonemeTag& from )
{
memcpy( this, &from, sizeof(*this) );
memcpy( (void *)this, &from, sizeof(*this) );
}
+1 -1
View File
@@ -48,7 +48,7 @@ public:
CBasePhonemeTag();
CBasePhonemeTag( const CBasePhonemeTag& from );
CBasePhonemeTag &operator=( const CBasePhonemeTag &from ) { memcpy( this, &from, sizeof(*this) ); return *this; }
CBasePhonemeTag &operator=( const CBasePhonemeTag &from ) { memcpy( (void *)this, &from, sizeof(*this) ); return *this; }
float GetStartTime() const { return m_flStartTime; }
void SetStartTime( float startTime ) { m_flStartTime = startTime; }
+2 -2
View File
@@ -3319,7 +3319,7 @@ inline int Studio_LoadVertexes( const vertexFileHeader_t *pTempVvdHdr, vertexFil
// copy vertexes
memcpy(
(mstudiovertex_t *)((byte *)pNewVvdHdr+pNewVvdHdr->vertexDataStart) + target,
(void *)((mstudiovertex_t *)((byte *)pNewVvdHdr+pNewVvdHdr->vertexDataStart) + target),
(mstudiovertex_t *)((byte *)pTempVvdHdr+pTempVvdHdr->vertexDataStart) + pFixupTable[i].sourceVertexID,
pFixupTable[i].numVertexes*sizeof(mstudiovertex_t) );
@@ -3327,7 +3327,7 @@ inline int Studio_LoadVertexes( const vertexFileHeader_t *pTempVvdHdr, vertexFil
{
// copy tangents
memcpy(
(Vector4D *)((byte *)pNewVvdHdr+pNewVvdHdr->tangentDataStart) + target,
(void *)((Vector4D *)((byte *)pNewVvdHdr+pNewVvdHdr->tangentDataStart) + target),
(Vector4D *)((byte *)pTempVvdHdr+pTempVvdHdr->tangentDataStart) + pFixupTable[i].sourceVertexID,
pFixupTable[i].numVertexes*sizeof(Vector4D) );
}
+1 -1
View File
@@ -1216,7 +1216,7 @@ inline uint64 Plat_Rdtsc()
public: \
_classname &operator=( const _classname &src ) \
{ \
memcpy( this, &src, sizeof(_classname) ); \
memcpy( (void *)this, &src, sizeof(_classname) ); \
return *this; \
}