summaryrefslogtreecommitdiffstats
path: root/common/rfb/TightEncoder.cxx
diff options
context:
space:
mode:
authorDRC <dcommander@users.sourceforge.net>2011-08-19 03:11:32 +0000
committerDRC <dcommander@users.sourceforge.net>2011-08-19 03:11:32 +0000
commite3ffcf7337b4567765a78abdcf3b5f63d381bc08 (patch)
tree1fc20d1d1ed5aaa17a457ff6f7f049ee81aff47f /common/rfb/TightEncoder.cxx
parent6b0edb06775615421924048d44d1b299d5a026ad (diff)
downloadtigervnc-e3ffcf7337b4567765a78abdcf3b5f63d381bc08.tar.gz
tigervnc-e3ffcf7337b4567765a78abdcf3b5f63d381bc08.zip
Fix compiler warning in Visual C++
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4638 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb/TightEncoder.cxx')
-rw-r--r--common/rfb/TightEncoder.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rfb/TightEncoder.cxx b/common/rfb/TightEncoder.cxx
index fa7ee9a7..e35bad62 100644
--- a/common/rfb/TightEncoder.cxx
+++ b/common/rfb/TightEncoder.cxx
@@ -292,8 +292,8 @@ bool TightEncoder::writeRect(const Rect& _r, TransImageGetter* _ig,
Rect r = _r;
int x = r.tl.x;
int y = r.tl.y;
- unsigned int w = r.width();
- unsigned int h = r.height();
+ int w = r.width();
+ int h = r.height();
// Encode small rects as is.
if (!cp->supportsLastRect || w * h < TIGHT_MIN_SPLIT_RECT_SIZE) {
@@ -303,7 +303,7 @@ bool TightEncoder::writeRect(const Rect& _r, TransImageGetter* _ig,
// Split big rects into separately encoded subrects.
Rect sr, bestr;
- unsigned int dx, dy, dw, dh;
+ int dx, dy, dw, dh;
rdr::U32 colorValue;
int maxRectSize = pconf->maxRectSize;
int maxRectWidth = pconf->maxRectWidth;