aboutsummaryrefslogtreecommitdiffstats
path: root/common/rdr/TLSInStream.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-03 16:26:03 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-03 16:26:03 +0100
commit5c23b9ed7d55a2cd5f44b8ec3da2c8bdcac5c3a5 (patch)
tree8c3438ffdacb5188cae93df720219fb96c242505 /common/rdr/TLSInStream.cxx
parenta7bbe9c4a3b2090240173e45bebab86e5cba3b4b (diff)
downloadtigervnc-5c23b9ed7d55a2cd5f44b8ec3da2c8bdcac5c3a5.tar.gz
tigervnc-5c23b9ed7d55a2cd5f44b8ec3da2c8bdcac5c3a5.zip
Fix bad signed/unsigned comparisons
Either by casting, or switching to a more appropriate type for the variable.
Diffstat (limited to 'common/rdr/TLSInStream.cxx')
-rw-r--r--common/rdr/TLSInStream.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rdr/TLSInStream.cxx b/common/rdr/TLSInStream.cxx
index 4d2c9ecb..21b60565 100644
--- a/common/rdr/TLSInStream.cxx
+++ b/common/rdr/TLSInStream.cxx
@@ -44,7 +44,7 @@ ssize_t TLSInStream::pull(gnutls_transport_ptr str, void* data, size_t size)
return -1;
}
- if (in->getend() - in->getptr() < size)
+ if (in->getend() - in->getptr() < (ptrdiff_t)size)
size = in->getend() - in->getptr();
in->readBytes(data, size);