mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
amd64: fix mempool, utlbuffer align
This commit is contained in:
@@ -49,7 +49,7 @@ public:
|
||||
template<class T> FORCEINLINE void Put( T const &nValue )
|
||||
{
|
||||
EnsureCapacity( sizeof( T ) );
|
||||
*( reinterpret_cast<T *>( m_pDataOut ) ) = nValue;
|
||||
memcpy( m_pDataOut, &nValue, sizeof(T) );
|
||||
m_pDataOut += sizeof( nValue );
|
||||
#ifdef DBGFLAG_ASSERT
|
||||
m_nNumBytesRemaining -= sizeof( nValue );
|
||||
|
||||
Reference in New Issue
Block a user