diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-28 21:02:56 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-29 09:51:06 +0100 |
commit | bfc04bc43e378c5d028200da7a49be978ce8d6c4 (patch) | |
tree | f0099a779c7587d7e49e6ddd021f96acb0e42555 /sot/source/sdstor/stgstrms.cxx | |
parent | 5426a14e39660bde0dece27cf5ec26b9938bd962 (diff) |
ofz#2976 Timeout
Change-Id: Iff085d6bdbbfc7f2c821fdcef8e412aa91152d93
Reviewed-on: https://gerrit.libreoffice.org/48804
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sot/source/sdstor/stgstrms.cxx')
-rw-r--r-- | sot/source/sdstor/stgstrms.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx index efa03cd14d20..17958544d880 100644 --- a/sot/source/sdstor/stgstrms.cxx +++ b/sot/source/sdstor/stgstrms.cxx @@ -588,13 +588,13 @@ bool StgFATStrm::Pos2Page( sal_Int32 nBytePos ) m_nPage = nBytePos / m_nPageSize; m_nOffset = static_cast<short>( nBytePos % m_nPageSize ); m_nPos = nBytePos; - m_nPage = GetPage( static_cast<short>(m_nPage), false ); + m_nPage = GetPage(m_nPage, false); return m_nPage >= 0; } // Get the page number entry for the given page offset. -sal_Int32 StgFATStrm::GetPage( short nOff, bool bMake, sal_uInt16 *pnMasterAlloc ) +sal_Int32 StgFATStrm::GetPage(sal_Int32 nOff, bool bMake, sal_uInt16 *pnMasterAlloc) { OSL_ENSURE( nOff >= 0, "The offset may not be negative!" ); if( pnMasterAlloc ) *pnMasterAlloc = 0; |