diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-03-08 17:33:38 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-03-08 17:33:38 +0100 |
commit | 307fad0f257c825c8d433a3e82f2989a8fddd3e0 (patch) | |
tree | df7f820f17893aed860d890b402ca64dd3122b78 /src/Protocol | |
parent | Actually Fixed ByteBuffer (diff) | |
download | cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.gz cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.bz2 cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.lz cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.xz cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.tar.zst cuberite-307fad0f257c825c8d433a3e82f2989a8fddd3e0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Protocol/Protocol17x.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Protocol/Protocol17x.cpp b/src/Protocol/Protocol17x.cpp index cb9e5b9b1..8e0d33227 100644 --- a/src/Protocol/Protocol17x.cpp +++ b/src/Protocol/Protocol17x.cpp @@ -1244,7 +1244,7 @@ void cProtocol172::AddReceivedData(const char * a_Data, int a_Size) if (m_ReceivedData.GetReadableSpace() > 0) { AString AllData; - int OldReadableSpace = m_ReceivedData.GetReadableSpace(); + size_t OldReadableSpace = m_ReceivedData.GetReadableSpace(); m_ReceivedData.ReadAll(AllData); m_ReceivedData.ResetRead(); m_ReceivedData.SkipRead(m_ReceivedData.GetReadableSpace() - OldReadableSpace); @@ -1366,7 +1366,7 @@ void cProtocol172::AddReceivedData(const char * a_Data, int a_Size) if (g_ShouldLogCommIn && (m_ReceivedData.GetReadableSpace() > 0)) { AString AllData; - int OldReadableSpace = m_ReceivedData.GetReadableSpace(); + size_t OldReadableSpace = m_ReceivedData.GetReadableSpace(); m_ReceivedData.ReadAll(AllData); m_ReceivedData.ResetRead(); m_ReceivedData.SkipRead(m_ReceivedData.GetReadableSpace() - OldReadableSpace); |