aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/EncodeManager.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-03 16:26:03 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-03 16:26:03 +0100
commit5c23b9ed7d55a2cd5f44b8ec3da2c8bdcac5c3a5 (patch)
tree8c3438ffdacb5188cae93df720219fb96c242505 /common/rfb/EncodeManager.cxx
parenta7bbe9c4a3b2090240173e45bebab86e5cba3b4b (diff)
downloadtigervnc-5c23b9ed7d55a2cd5f44b8ec3da2c8bdcac5c3a5.tar.gz
tigervnc-5c23b9ed7d55a2cd5f44b8ec3da2c8bdcac5c3a5.zip
Fix bad signed/unsigned comparisons
Either by casting, or switching to a more appropriate type for the variable.
Diffstat (limited to 'common/rfb/EncodeManager.cxx')
-rw-r--r--common/rfb/EncodeManager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/EncodeManager.cxx b/common/rfb/EncodeManager.cxx
index e6323870..4e133d31 100644
--- a/common/rfb/EncodeManager.cxx
+++ b/common/rfb/EncodeManager.cxx
@@ -152,7 +152,7 @@ EncodeManager::~EncodeManager()
void EncodeManager::logStats()
{
- int i, j;
+ size_t i, j;
unsigned rects;
unsigned long long pixels, bytes, equivalent;
@@ -603,7 +603,7 @@ void EncodeManager::writeSubRect(const Rect& rect, const PixelBuffer *pb)
Encoder *encoder;
struct RectInfo info;
- int divisor, maxColours;
+ unsigned int divisor, maxColours;
bool useRLE;
EncoderType type;