engine: fix incompatible int size when casting pointer to int

This commit is contained in:
Alibek Omarov
2025-04-21 15:54:32 +03:00
parent 2f3b03d27a
commit 36cb3b2d89
2 changed files with 2 additions and 2 deletions

View File

@@ -618,7 +618,7 @@ qboolean MSG_ReadBits( sizebuf_t *sb, void *pOutData, int nBits )
int nBitsLeft = nBits;
// get output dword-aligned.
while((( uint32_t )pOut & 3) != 0 && nBitsLeft >= 8 )
while((( uintptr_t )pOut & 3) != 0 && nBitsLeft >= 8 )
{
*pOut = (byte)MSG_ReadUBitLong( sb, 8 );
++pOut;