diff options
| author | Michael Sartain <[email protected]> | 2014-10-02 08:25:55 -0700 |
|---|---|---|
| committer | Michael Sartain <[email protected]> | 2014-10-02 08:25:55 -0700 |
| commit | 55ed12f8d1eb6887d348be03aee5573d44177ffb (patch) | |
| tree | 3686f7ca78c780cd9a3d367b79a9d9250c1be7c0 /mp/src/public/tier1/utlmemory.h | |
| parent | * Added support for Visual C++ 2013 Express to VPC (diff) | |
| download | source-sdk-2013-55ed12f8d1eb6887d348be03aee5573d44177ffb.tar.xz source-sdk-2013-55ed12f8d1eb6887d348be03aee5573d44177ffb.zip | |
Updated the SDK with the latest code from the TF and HL2 branches.
Diffstat (limited to 'mp/src/public/tier1/utlmemory.h')
| -rw-r--r-- | mp/src/public/tier1/utlmemory.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mp/src/public/tier1/utlmemory.h b/mp/src/public/tier1/utlmemory.h index 2b817bb2..9c5a1d14 100644 --- a/mp/src/public/tier1/utlmemory.h +++ b/mp/src/public/tier1/utlmemory.h @@ -552,7 +552,7 @@ inline T& CUtlMemory<T,I>::operator[]( I i ) // Avoid function calls in the asserts to improve debug build performance Assert( m_nGrowSize != EXTERNAL_CONST_BUFFER_MARKER ); //Assert( !IsReadOnly() ); Assert( (uint32)i < (uint32)m_nAllocationCount ); - return m_pMemory[i]; + return m_pMemory[(uint32)i]; } template< class T, class I > @@ -560,7 +560,7 @@ inline const T& CUtlMemory<T,I>::operator[]( I i ) const { // Avoid function calls in the asserts to improve debug build performance Assert( (uint32)i < (uint32)m_nAllocationCount ); - return m_pMemory[i]; + return m_pMemory[(uint32)i]; } template< class T, class I > @@ -569,7 +569,7 @@ inline T& CUtlMemory<T,I>::Element( I i ) // Avoid function calls in the asserts to improve debug build performance Assert( m_nGrowSize != EXTERNAL_CONST_BUFFER_MARKER ); //Assert( !IsReadOnly() ); Assert( (uint32)i < (uint32)m_nAllocationCount ); - return m_pMemory[i]; + return m_pMemory[(uint32)i]; } template< class T, class I > @@ -577,7 +577,7 @@ inline const T& CUtlMemory<T,I>::Element( I i ) const { // Avoid function calls in the asserts to improve debug build performance Assert( (uint32)i < (uint32)m_nAllocationCount ); - return m_pMemory[i]; + return m_pMemory[(uint32)i]; } |