summaryrefslogtreecommitdiff
path: root/package/source/zipapi/CRC32.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-09-21 13:09:29 +0100
committerMichael Meeks <michael.meeks@suse.com>2012-09-21 15:37:17 +0100
commit9b0198b2442bc749491d0f1e5e2c811346e5d568 (patch)
tree6af3f097947c8d5a4ebf5fd5599d1fe1fcc9e96c /package/source/zipapi/CRC32.cxx
parentb3603e0e0e5dbfbeaa2426c499e8f64be2d15765 (diff)
package: convert internal ZIP handling data-types to 64bit
Prepare for a ZIP64 implementation. Audit all "Size" property fetches through Anys. Audit all uses of nSize, nCompressedSize, nOffset through the code. Add FIXME64: comments to all points requiring future work.
Diffstat (limited to 'package/source/zipapi/CRC32.cxx')
-rw-r--r--package/source/zipapi/CRC32.cxx8
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
{