Silence yet another warning
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 19 Feb 2014 22:14:37 +0000 (23:14 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 19 Feb 2014 22:14:37 +0000 (23:14 +0100)
I have no clue why neither gcc nor clang throw a -Wsign-compare for me
there, but do for some other people, so... *sigh*

src/common/compressor.cpp

index 1d2233a..f391a43 100644 (file)
@@ -243,7 +243,7 @@ void Compressor::writeData()
             return;
         }
 
-        if (_deflater->avail_out == ioBufferSize)
+        if (_deflater->avail_out == static_cast<unsigned int>(ioBufferSize))
             continue; // nothing to write here
 
         if (!_socket->write(_outputBuffer.constData(), ioBufferSize - _deflater->avail_out)) {