summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-11-21 19:14:17 -0800
committerPavel Roskin <plroskin@gmail.com>2016-11-22 08:34:45 -0800
commit077e3f5bfc10937ea99a7de71fc867545126633e (patch)
treeeee12e82735e01665c3ffe8cf62cd6747e6b89a5
parente7433ec69c98d194fbd0e2723b692cf72e3a7a9f (diff)
downloadxrdp-proprietary-077e3f5bfc10937ea99a7de71fc867545126633e.tar.gz
xrdp-proprietary-077e3f5bfc10937ea99a7de71fc867545126633e.zip
Fix pointer sign warnings in TurboJPEG compression code
-rw-r--r--libxrdp/xrdp_jpeg_compress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libxrdp/xrdp_jpeg_compress.c b/libxrdp/xrdp_jpeg_compress.c
index bcf66866..385203a6 100644
--- a/libxrdp/xrdp_jpeg_compress.c
+++ b/libxrdp/xrdp_jpeg_compress.c
@@ -160,12 +160,12 @@ xrdp_codec_jpeg_compress(void *handle,
* TJPF_ARGB no works, zero bytes */
error = tjCompress(tj_han, /* opaque handle */
- src_ptr, /* source buf */
+ (unsigned char *) src_ptr, /* source buf */
cx, /* width of area to compress */
stride, /* pitch */
cy, /* height of area to compress */
TJPF_XBGR, /* pixel size */
- out_data, /* dest buf */
+ (unsigned char *) out_data, /* dest buf */
&lio_len, /* inner_buf length & compressed_size */
TJSAMP_420, /* jpeg sub sample */
quality, /* jpeg quality */