diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/source/zippackage/ZipPackageBuffer.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/source/zippackage/ZipPackageBuffer.cxx b/package/source/zippackage/ZipPackageBuffer.cxx index 8df0f3a96c9b..741c86629038 100644 --- a/package/source/zippackage/ZipPackageBuffer.cxx +++ b/package/source/zippackage/ZipPackageBuffer.cxx @@ -76,7 +76,7 @@ void SAL_CALL ZipPackageBuffer::skipBytes( sal_Int32 nBytesToSkip ) } sal_Int32 SAL_CALL ZipPackageBuffer::available( ) { - return static_cast < sal_Int32 > (m_nEnd - m_nCurrent); + return std::min<sal_Int64>(SAL_MAX_INT32, m_nEnd - m_nCurrent); } void SAL_CALL ZipPackageBuffer::closeInput( ) { |