diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:26:03 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-03-03 16:26:03 +0100 |
commit | 5c23b9ed7d55a2cd5f44b8ec3da2c8bdcac5c3a5 (patch) | |
tree | 8c3438ffdacb5188cae93df720219fb96c242505 /common/rdr/TLSInStream.cxx | |
parent | a7bbe9c4a3b2090240173e45bebab86e5cba3b4b (diff) | |
download | tigervnc-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.cxx | 2 |
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); |