summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-08 16:37:33 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-08 16:37:33 +0100
commit38ba8684f86e67ccf34dbe26ba82798e8b1c11ea (patch)
tree9c397be5ba205c1630daf368f4eed6e3d60a9ea3
parentMerge branch 'warnings' into Werror (diff)
parentActually Fixed ByteBuffer (diff)
downloadcuberite-38ba8684f86e67ccf34dbe26ba82798e8b1c11ea.tar
cuberite-38ba8684f86e67ccf34dbe26ba82798e8b1c11ea.tar.gz
cuberite-38ba8684f86e67ccf34dbe26ba82798e8b1c11ea.tar.bz2
cuberite-38ba8684f86e67ccf34dbe26ba82798e8b1c11ea.tar.lz
cuberite-38ba8684f86e67ccf34dbe26ba82798e8b1c11ea.tar.xz
cuberite-38ba8684f86e67ccf34dbe26ba82798e8b1c11ea.tar.zst
cuberite-38ba8684f86e67ccf34dbe26ba82798e8b1c11ea.zip
-rw-r--r--src/ByteBuffer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ByteBuffer.cpp b/src/ByteBuffer.cpp
index 32a367462..8080c1bdc 100644
--- a/src/ByteBuffer.cpp
+++ b/src/ByteBuffer.cpp
@@ -650,7 +650,7 @@ bool cByteBuffer::WriteLEInt(int a_Value)
-bool cByteBuffer::ReadBuf(void * a_Buffer, int a_Count)
+bool cByteBuffer::ReadBuf(void * a_Buffer, size_t a_Count)
{
CHECK_THREAD;
CheckValid();
@@ -684,7 +684,7 @@ bool cByteBuffer::ReadBuf(void * a_Buffer, int a_Count)
-bool cByteBuffer::WriteBuf(const void * a_Buffer, int a_Count)
+bool cByteBuffer::WriteBuf(const void * a_Buffer, size_t a_Count)
{
CHECK_THREAD;
CheckValid();
@@ -714,7 +714,7 @@ bool cByteBuffer::WriteBuf(const void * a_Buffer, int a_Count)
-bool cByteBuffer::ReadString(AString & a_String, int a_Count)
+bool cByteBuffer::ReadString(AString & a_String, size_t a_Count)
{
CHECK_THREAD;
CheckValid();