mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-09 03:24:52 +00:00
Fix "Non-const reference cannot bind to bit-field" diagnostic
This commit is contained in:
parent
aea94b32cb
commit
71e408728b
1 changed files with 3 additions and 2 deletions
|
@ -137,8 +137,9 @@ void CUtlBlockMemory<T,I>::Swap( CUtlBlockMemory< T, I > &mem )
|
|||
{
|
||||
V_swap( m_pMemory, mem.m_pMemory );
|
||||
V_swap( m_nBlocks, mem.m_nBlocks );
|
||||
V_swap( m_nIndexMask, mem.m_nIndexMask );
|
||||
V_swap( m_nIndexShift, mem.m_nIndexShift );
|
||||
// Casts fix "Non-const reference cannot bind to bit-field" error
|
||||
V_swap( (int &)m_nIndexMask, (int &)mem.m_nIndexMask );
|
||||
V_swap( (int &)m_nIndexShift, (int &)mem.m_nIndexShift );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue