use sal_uInt64 when dealing with stream position
Change-Id: I0752d158c648f6ebfa17c9273bab2176e1ca6c83 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155518 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
f65c04b2b3
commit
9a1de2cfdf
3 changed files with 4 additions and 4 deletions
|
@ -185,7 +185,7 @@ sal_Int64 SAL_CALL OSeekableInputStreamWrapper::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);
|
||||
}
|
||||
|
@ -264,7 +264,7 @@ void SAL_CALL OSeekableOutputStreamWrapper::seek( sal_Int64 _nLocation )
|
|||
|
||||
sal_Int64 SAL_CALL OSeekableOutputStreamWrapper::getPosition( )
|
||||
{
|
||||
sal_uInt32 nPos = rStream.Tell();
|
||||
sal_uInt64 nPos = rStream.Tell();
|
||||
checkError();
|
||||
return static_cast<sal_Int64>(nPos);
|
||||
}
|
||||
|
|
|
@ -760,7 +760,7 @@ sal_Int64 SAL_CALL TempFileFastService::getPosition()
|
|||
std::unique_lock aGuard( maMutex );
|
||||
checkConnected();
|
||||
|
||||
sal_uInt32 nPos = mpStream->Tell();
|
||||
sal_uInt64 nPos = mpStream->Tell();
|
||||
checkError();
|
||||
return static_cast<sal_Int64>(nPos);
|
||||
}
|
||||
|
|
|
@ -271,7 +271,7 @@ sal_Int64 SAL_CALL OTempFileService::getPosition( )
|
|||
std::unique_lock aGuard( maMutex );
|
||||
checkConnected();
|
||||
|
||||
sal_uInt32 nPos = mpStream->Tell();
|
||||
sal_uInt64 nPos = mpStream->Tell();
|
||||
checkError();
|
||||
return static_cast<sal_Int64>(nPos);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue