Fix compiler warning in Visual C++
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4638 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/rfb/TightEncoder.cxx b/common/rfb/TightEncoder.cxx
index fa7ee9a..e35bad6 100644
--- a/common/rfb/TightEncoder.cxx
+++ b/common/rfb/TightEncoder.cxx
@@ -292,8 +292,8 @@
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 @@
// 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;