summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-12 15:04:00 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-13 07:50:41 +0100
commitb0ebc5608e2f56f7377a60f49957a42ef6a89e6a (patch)
treeb39949d3e5db720789abe3b04907636490569329
parenta000ee86e676535a07b28cf6a0b8dd9655164e3f (diff)
sal_uIntPtr->size_t in ZCodec
to match the underlying fields Change-Id: I79ce52b80e2589b3194616b3d43846cdefd7adae Reviewed-on: https://gerrit.libreoffice.org/46349 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
-rw-r--r--include/tools/zcodec.hxx2
-rw-r--r--tools/source/zcodec/zcodec.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/tools/zcodec.hxx b/include/tools/zcodec.hxx
index f5dd99ac7acb..57af7c50c2a1 100644
--- a/include/tools/zcodec.hxx
+++ b/include/tools/zcodec.hxx
@@ -58,7 +58,7 @@ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC ZCodec
void UpdateCRC( sal_uInt8 const * pSource, long nDatSize );
public:
- ZCodec( sal_uIntPtr nInBuf = 0x8000UL, sal_uIntPtr nOutBuf = 0x8000UL );
+ ZCodec( size_t nInBufSize = 32768, size_t nOutBufSize = 32768 );
~ZCodec();
void BeginCompression( int nCompressLevel = ZCODEC_DEFAULT_COMPRESSION, bool updateCrc = false, bool gzLib = false );
diff --git a/tools/source/zcodec/zcodec.cxx b/tools/source/zcodec/zcodec.cxx
index 385ad7b04b58..bf317594f4af 100644
--- a/tools/source/zcodec/zcodec.cxx
+++ b/tools/source/zcodec/zcodec.cxx
@@ -37,7 +37,7 @@
static const int gz_magic[2] = { 0x1f, 0x8b }; /* gzip magic header */
-ZCodec::ZCodec( sal_uIntPtr nInBufSize, sal_uIntPtr nOutBufSize )
+ZCodec::ZCodec( size_t nInBufSize, size_t nOutBufSize )
: meState(STATE_INIT)
, mbStatus(false)
, mbFinish(false)