summaryrefslogtreecommitdiffstats
path: root/common/rfb/ConnParams.cxx
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2010-02-10 07:43:02 +0000
committerPeter Åstrand <astrand@cendio.se>2010-02-10 07:43:02 +0000
commit98fe98c68939fee9bdf492e813a50f239674b733 (patch)
tree99935d1420b497c483a98ca193759b7d31fdeffd /common/rfb/ConnParams.cxx
parent618c1707a4d29e1d6efda633fadaaf81d1f80062 (diff)
downloadtigervnc-98fe98c68939fee9bdf492e813a50f239674b733.tar.gz
tigervnc-98fe98c68939fee9bdf492e813a50f239674b733.zip
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
Diffstat (limited to 'common/rfb/ConnParams.cxx')
-rw-r--r--common/rfb/ConnParams.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rfb/ConnParams.cxx b/common/rfb/ConnParams.cxx
index 7b27a734..9bfc3027 100644
--- a/common/rfb/ConnParams.cxx
+++ b/common/rfb/ConnParams.cxx
@@ -85,11 +85,11 @@ void ConnParams::setName(const char* name)
name_ = strDup(name);
}
-void ConnParams::setEncodings(int nEncodings, const rdr::U32* encodings)
+void ConnParams::setEncodings(int nEncodings, const rdr::S32* encodings)
{
if (nEncodings > nEncodings_) {
delete [] encodings_;
- encodings_ = new rdr::U32[nEncodings];
+ encodings_ = new rdr::S32[nEncodings];
}
nEncodings_ = nEncodings;
useCopyRect = false;