summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2023-08-09 16:38:55 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-08-09 20:06:54 +0200
commitda54fbce1c9101925059b980a0d9fe441bf0461f (patch)
tree1dac07149177ce27834f8293246fdc944d397061 /sot
parent55c0d6caec990ed2d5433251bfed9c51d1207e47 (diff)
use sal_uInt64 when dealing with stream position
Change-Id: I2869e115941b3e1f52911d58d54ec1b2831d0524 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155524 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgstrms.cxx4
-rw-r--r--sot/source/sdstor/ucbstorage.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index b58c2a7922d9..61682ead8ab0 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -1300,8 +1300,8 @@ std::size_t StgTmpStrm::GetData( void* pData, std::size_t n )
std::size_t StgTmpStrm::PutData( const void* pData, std::size_t n )
{
- sal_uInt32 nCur = Tell();
- sal_uInt32 nNew = nCur + n;
+ sal_uInt64 nCur = Tell();
+ sal_uInt64 nNew = nCur + n;
if( nNew > THRESHOLD && !m_pStrm )
{
SetSize( nNew );
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index 8ded02a7b139..fa203acc1178 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -253,9 +253,9 @@ sal_Int64 SAL_CALL FileStreamWrapper_Impl::getPosition( )
std::scoped_lock aGuard( m_aMutex );
checkConnected();
- sal_uInt32 nPos = m_pSvStream->Tell();
+ sal_uInt64 nPos = m_pSvStream->Tell();
checkError();
- return static_cast<sal_Int64>(nPos);
+ return nPos;
}