1
0
Fork 0

Changed cByteBuffer constructor to take a size_t instead of int.

This commit is contained in:
madmaxoft 2014-04-24 21:29:59 +02:00
parent 695baed226
commit 449cf77420
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ protected:
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// cByteBuffer:
cByteBuffer::cByteBuffer(int a_BufferSize) :
cByteBuffer::cByteBuffer(size_t a_BufferSize) :
m_Buffer(new char[a_BufferSize + 1]),
m_BufferSize(a_BufferSize + 1),
#ifdef _DEBUG

View File

@ -27,7 +27,7 @@ their own synchronization.
class cByteBuffer
{
public:
cByteBuffer(int a_BufferSize);
cByteBuffer(size_t a_BufferSize);
~cByteBuffer();
/// Writes the bytes specified to the ringbuffer. Returns true if successful, false if not