From e3ffcf7337b4567765a78abdcf3b5f63d381bc08 Mon Sep 17 00:00:00 2001 From: DRC Date: Fri, 19 Aug 2011 03:11:32 +0000 Subject: [PATCH] Fix compiler warning in Visual C++ git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4638 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/TightEncoder.cxx | 6 +++--- 1 file 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; -- 2.39.5