Some uint/size_t compile fixes
This was SVN commit r6114.
This commit is contained in:
parent
4b1538bb70
commit
6e893a2050
@ -154,7 +154,7 @@ void CNetLogSink::DoBulkSink( const CNetLogEvent* pEvents, size_t eventCount )
|
||||
if ( m_Closed ) return;
|
||||
|
||||
// Allocate new array which will store the events that will be logged
|
||||
pIndices = new unsigned[ eventCount ];
|
||||
pIndices = new size_t[ eventCount ];
|
||||
if ( !pIndices )
|
||||
{
|
||||
throw std::bad_alloc();
|
||||
|
@ -137,7 +137,7 @@ const u8* CNetMessage::Deserialize( const u8* pStart, const u8* pEnd )
|
||||
// Name: GetSerializedLength()
|
||||
// Desc: Returns the size of the serialized message
|
||||
//-----------------------------------------------------------------------------
|
||||
uint CNetMessage::GetSerializedLength( void ) const
|
||||
size_t CNetMessage::GetSerializedLength( void ) const
|
||||
{
|
||||
// By default, return header size
|
||||
return ( sizeof( m_Type ) + sizeof( uint ) );
|
||||
@ -920,9 +920,8 @@ CNetMessage* CNetMessage::CreateProduceMessage( const CEntityList& entities, con
|
||||
// Name: CreateMessage()
|
||||
// Desc: Creates the appropriate message based on the given data
|
||||
//-----------------------------------------------------------------------------
|
||||
CNetMessage* CNetMessageFactory::CreateMessage(
|
||||
const void* pData,
|
||||
uint dataSize )
|
||||
CNetMessage* CNetMessageFactory::CreateMessage(const void* pData,
|
||||
size_t dataSize )
|
||||
{
|
||||
CNetMessage* pNewMessage = NULL;
|
||||
CNetMessage header;
|
||||
|
@ -107,7 +107,7 @@ public:
|
||||
*
|
||||
* @return The size of serialized message
|
||||
*/
|
||||
virtual uint GetSerializedLength() const;
|
||||
virtual size_t GetSerializedLength() const;
|
||||
|
||||
/**
|
||||
* Returns a string representation for the message
|
||||
|
Loading…
Reference in New Issue
Block a user