summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-04-24 21:29:59 +0200
committermadmaxoft <github@xoft.cz>2014-04-24 21:52:24 +0200
commit449cf77420900e44d3b947a95efabdd78d0c3691 (patch)
tree378ac564e9e496546bb16b8cc234e1165b928a51
parentUpdated docs for StringToEnchantmentID. (diff)
downloadcuberite-449cf77420900e44d3b947a95efabdd78d0c3691.tar
cuberite-449cf77420900e44d3b947a95efabdd78d0c3691.tar.gz
cuberite-449cf77420900e44d3b947a95efabdd78d0c3691.tar.bz2
cuberite-449cf77420900e44d3b947a95efabdd78d0c3691.tar.lz
cuberite-449cf77420900e44d3b947a95efabdd78d0c3691.tar.xz
cuberite-449cf77420900e44d3b947a95efabdd78d0c3691.tar.zst
cuberite-449cf77420900e44d3b947a95efabdd78d0c3691.zip
-rw-r--r--src/ByteBuffer.cpp2
-rw-r--r--src/ByteBuffer.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ByteBuffer.cpp b/src/ByteBuffer.cpp
index 1893d89a8..c634dc308 100644
--- a/src/ByteBuffer.cpp
+++ b/src/ByteBuffer.cpp
@@ -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
diff --git a/src/ByteBuffer.h b/src/ByteBuffer.h
index 1915467f3..44f43e17f 100644
--- a/src/ByteBuffer.h
+++ b/src/ByteBuffer.h
@@ -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