mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
arm64 : fix intptr_t size
This commit is contained in:
+1
-1
@@ -198,7 +198,7 @@ IPhysicsCollisionSet *CPhysicsInterface::FindCollisionSet( unsigned int id )
|
||||
{
|
||||
if ( m_pCollisionSetHash )
|
||||
{
|
||||
int index = (int)m_pCollisionSetHash->find_elem( (void *)id );
|
||||
intp index = (intp)m_pCollisionSetHash->find_elem( (void *)id );
|
||||
if ( index > 0 )
|
||||
{
|
||||
Assert( index <= m_collisionSets.Count() );
|
||||
|
||||
@@ -2041,7 +2041,7 @@ public:
|
||||
if ( !pHash )
|
||||
return m_objectList.InvalidIndex();
|
||||
|
||||
unsigned int hash = (unsigned int)pHash;
|
||||
uintp hash = (uintp)pHash;
|
||||
// mask off the extra bit we added to avoid zeros
|
||||
hash &= 0xFFFF;
|
||||
return (unsigned short)hash;
|
||||
|
||||
@@ -148,7 +148,7 @@ void CMeshInstance::Init( const virtualmeshlist_t &list )
|
||||
m_memSize = memSize;
|
||||
m_hullCount = 0;
|
||||
m_pMemory = (char *)ivp_malloc_aligned( memSize, 16 );
|
||||
Assert( (int(m_pMemory) & 15) == 0 ); // make sure it is aligned
|
||||
Assert( (intp(m_pMemory) & 15) == 0 ); // make sure it is aligned
|
||||
IVP_Compact_Poly_Point *pPoints = (IVP_Compact_Poly_Point *)&m_pMemory[ledgeSize];
|
||||
triangleledge_t *pLedges = (triangleledge_t *) m_pMemory;
|
||||
memset( m_pMemory, 0, memSize );
|
||||
|
||||
Reference in New Issue
Block a user