diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:26:03 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:26:03 +0100 |
commit | 5c23b9ed7d55a2cd5f44b8ec3da2c8bdcac5c3a5 (patch) | |
tree | 8c3438ffdacb5188cae93df720219fb96c242505 /common/rfb/EncodeManager.cxx | |
parent | a7bbe9c4a3b2090240173e45bebab86e5cba3b4b (diff) | |
download | tigervnc-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.cxx | 4 |
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; |