diff --git a/r5dev/tier1/utlmemory.h b/r5dev/tier1/utlmemory.h index 297c7cdf..d8baa356 100644 --- a/r5dev/tier1/utlmemory.h +++ b/r5dev/tier1/utlmemory.h @@ -703,7 +703,7 @@ inline bool CUtlMemory::IsIdxValid(I i) const { // GCC warns if I is an unsigned type and we do a ">= 0" against it (since the comparison is always 0). // We get the warning even if we cast inside the expression. It only goes away if we assign to another variable. - long x = i; + int64 x = i; return (x >= 0) && (x < m_nAllocationCount); }