arm64 : fix intptr_t size

This commit is contained in:
hymei
2022-06-05 01:12:32 +03:00
committed by nillerusr
parent 2690e6c85a
commit 4e4039d756
143 changed files with 1015 additions and 674 deletions
+1 -1
View File
@@ -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() );
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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 );