diff options
author | Christian Beier <dontmind@freeshell.org> | 2011-03-17 14:43:55 +0100 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2011-03-17 14:43:55 +0100 |
commit | fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532 (patch) | |
tree | 8539521ed668d65f6dbd59c491bc9565bce6e8cb /libvncclient/ultra.c | |
parent | 56234cd0b656de3c8827288f2adf78c9cb12d0c5 (diff) | |
download | libtdevnc-fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532.tar.gz libtdevnc-fe1ca16e9b75b5f38ab374c8dfff92d2c3ea4532.zip |
Fix (most) MinGW32 compiler warnings.
Diffstat (limited to 'libvncclient/ultra.c')
-rw-r--r-- | libvncclient/ultra.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libvncclient/ultra.c b/libvncclient/ultra.c index 3be150d..dddb0c0 100644 --- a/libvncclient/ultra.c +++ b/libvncclient/ultra.c @@ -37,7 +37,7 @@ HandleUltraBPP (rfbClient* client, int rx, int ry, int rw, int rh) rfbZlibHeader hdr; int toRead=0; int inflateResult=0; - int uncompressedBytes = (( rw * rh ) * ( BPP / 8 )); + lzo_uint uncompressedBytes = (( rw * rh ) * ( BPP / 8 )); if (!ReadFromRFBServer(client, (char *)&hdr, sz_rfbZlibHeader)) return FALSE; @@ -119,7 +119,7 @@ HandleUltraZipBPP (rfbClient* client, int rx, int ry, int rw, int rh) int toRead=0; int inflateResult=0; unsigned char *ptr=NULL; - int uncompressedBytes = ry + (rw * 65535); + lzo_uint uncompressedBytes = ry + (rw * 65535); unsigned int numCacheRects = rx; if (!ReadFromRFBServer(client, (char *)&hdr, sz_rfbZlibHeader)) @@ -170,7 +170,7 @@ HandleUltraZipBPP (rfbClient* client, int rx, int ry, int rw, int rh) uncompressedBytes = client->raw_buffer_size; inflateResult = lzo1x_decompress( (lzo_byte *)client->ultra_buffer, toRead, - (lzo_byte *)client->raw_buffer, (lzo_uintp) &uncompressedBytes, NULL); + (lzo_byte *)client->raw_buffer, &uncompressedBytes, NULL); if ( inflateResult != LZO_E_OK ) { rfbClientLog("ultra decompress returned error: %d\n", |