diff options
Diffstat (limited to 'package/source/zipapi/CRC32.cxx')
-rw-r--r-- | package/source/zipapi/CRC32.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package/source/zipapi/CRC32.cxx b/package/source/zipapi/CRC32.cxx index e6ad6fb35f2e..6aee4d514136 100644 --- a/package/source/zipapi/CRC32.cxx +++ b/package/source/zipapi/CRC32.cxx @@ -48,8 +48,7 @@ sal_Int32 SAL_CALL CRC32::getValue() /** Update CRC32 with specified sequence of bytes */ void SAL_CALL CRC32::updateSegment(const Sequence< sal_Int8 > &b, - sal_Int32 off, - sal_Int32 len) + sal_Int32 off, sal_Int32 len) throw(RuntimeException) { nCRC = rtl_crc32(nCRC, b.getConstArray()+off, len ); @@ -62,10 +61,11 @@ void SAL_CALL CRC32::update(const Sequence< sal_Int8 > &b) nCRC = rtl_crc32(nCRC, b.getConstArray(),b.getLength()); } -sal_Int32 SAL_CALL CRC32::updateStream( Reference < XInputStream > & xStream ) +sal_Int64 SAL_CALL CRC32::updateStream( Reference < XInputStream > & xStream ) throw ( RuntimeException ) { - sal_Int32 nLength, nTotal = 0; + sal_Int32 nLength; + sal_Int64 nTotal = 0; Sequence < sal_Int8 > aSeq ( n_ConstBufferSize ); do { |