From 98fe98c68939fee9bdf492e813a50f239674b733 Mon Sep 17 00:00:00 2001 From: Peter Åstrand Date: Wed, 10 Feb 2010 07:43:02 +0000 Subject: Eliminate GCC signed/unsigned warnings related to encodings: The encoding in the RFB protocol has always been signed, and signed values are also used in the specification (ie DesktopName = -307 etc). In the code, however, unsigned types were used in a number of places, but not all, which causes warnings. This patch fixes the problem by switching to signed values everywhere. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3968 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/rfb/CMsgHandler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/rfb/CMsgHandler.h') diff --git a/common/rfb/CMsgHandler.h b/common/rfb/CMsgHandler.h index 9205ef5a..d8b949b3 100644 --- a/common/rfb/CMsgHandler.h +++ b/common/rfb/CMsgHandler.h @@ -56,8 +56,8 @@ namespace rfb { virtual void framebufferUpdateStart() = 0; virtual void framebufferUpdateEnd() = 0; - virtual void beginRect(const Rect& r, unsigned int encoding) = 0; - virtual void endRect(const Rect& r, unsigned int encoding) = 0; + virtual void beginRect(const Rect& r, int encoding) = 0; + virtual void endRect(const Rect& r, int encoding) = 0; virtual void setColourMapEntries(int firstColour, int nColours, rdr::U16* rgbs) = 0; -- cgit v1.2.3