summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-03-09 12:44:52 +0100
committerTycho <work.tycho+git@gmail.com>2014-03-09 12:44:52 +0100
commitebdbac9b380bd63d96fe73d77827f203bda16e01 (patch)
tree725bef637abcecee9a6b4286d760f36e79799f03
parentMerge branch 'warnings' into Werror (diff)
parentFIxed int in test (diff)
downloadcuberite-ebdbac9b380bd63d96fe73d77827f203bda16e01.tar
cuberite-ebdbac9b380bd63d96fe73d77827f203bda16e01.tar.gz
cuberite-ebdbac9b380bd63d96fe73d77827f203bda16e01.tar.bz2
cuberite-ebdbac9b380bd63d96fe73d77827f203bda16e01.tar.lz
cuberite-ebdbac9b380bd63d96fe73d77827f203bda16e01.tar.xz
cuberite-ebdbac9b380bd63d96fe73d77827f203bda16e01.tar.zst
cuberite-ebdbac9b380bd63d96fe73d77827f203bda16e01.zip
-rw-r--r--src/ByteBuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ByteBuffer.cpp b/src/ByteBuffer.cpp
index a3b40e5ef..96a135562 100644
--- a/src/ByteBuffer.cpp
+++ b/src/ByteBuffer.cpp
@@ -86,7 +86,7 @@ public:
cByteBuffer buf(3);
for (int i = 0; i < 1000; i++)
{
- int FreeSpace = buf.GetFreeSpace();
+ size_t FreeSpace = buf.GetFreeSpace();
assert(buf.GetReadableSpace() == 0);
assert(FreeSpace > 0);
assert(buf.Write("a", 1));