summaryrefslogtreecommitdiff
path: root/tools/source/zcodec
diff options
context:
space:
mode:
authorCanberk TURAN <canberkkturann@gmail.com>2020-01-27 01:51:19 +0300
committerMichael Stahl <michael.stahl@cib.de>2020-02-21 10:27:50 +0100
commit9e0470da4a88a588a294856236d6adf1eefe22f6 (patch)
tree9a993b3b95b52400dc4a6214fedb31658c5ded18 /tools/source/zcodec
parentaca3cfb7119f1bbe432bf8c90832b0a89a304213 (diff)
tdf#75280: Convert inappropriate use of sal_uIntPtr to better integer types
I fixed if-conditons in UnoGraphicExporter.cxx and I deleted extra slash character at start of zcodec.cxx file. Change-Id: I464e7b0dcbfe835d04c5031bfbd6e46bccbb1216 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87470 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'tools/source/zcodec')
-rw-r--r--tools/source/zcodec/zcodec.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx
index 439e838bdc96..a29127be7232 100644
--- a/tools/source/zcodec/zcodec.cxx
+++ b/tools/source/zcodec/zcodec.cxx
@@ -287,9 +287,9 @@ long ZCodec::ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uInt32 nSize
void ZCodec::ImplWriteBack()
{
auto pStream = static_cast<z_stream*>(mpsC_Stream);
- sal_uIntPtr nAvail = mnOutBufSize - pStream->avail_out;
+ size_t nAvail = mnOutBufSize - pStream->avail_out;
- if ( nAvail )
+ if ( nAvail > 0 )
{
pStream->next_out = mpOutBuf;
mpOStm->WriteBytes( mpOutBuf, nAvail );