summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-01-27 19:38:12 +0000
committerAndras Timar <andras.timar@collabora.com>2018-03-06 15:01:34 +0100
commitfbe412bc11c301e805d45c9693eb2f6f196be06a (patch)
tree647b4be387b789b4174851d82fb088e2780dee22 /sot
parentd402d436e797f3581d41a5477c7ee23284d88925 (diff)
ofz#5747 short->sal_Int32 like in StgDataStrm
Change-Id: I254c00b1142d7187beabe5d18532efec036de494 Reviewed-on: https://gerrit.libreoffice.org/48757 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 59cf6c6128f67d807de58fae2d7fae2b4909ad68)
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgstrms.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sot/source/sdstor/stgstrms.cxx b/sot/source/sdstor/stgstrms.cxx
index 7063a4ce99d3..21d5a43f4c2a 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -1047,7 +1047,7 @@ sal_Int32 StgSmallStrm::Read( void* pBuf, sal_Int32 n )
// small stream is likely to be < 64 KBytes.
if( ( m_nPos + n ) > m_nSize )
n = m_nSize - m_nPos;
- short nDone = 0;
+ sal_Int32 nDone = 0;
while( n )
{
short nBytes = m_nPageSize - m_nOffset;
@@ -1078,7 +1078,7 @@ sal_Int32 StgSmallStrm::Write( const void* pBuf, sal_Int32 n )
{
// you can safely assume that reads are not huge, since the
// small stream is likely to be < 64 KBytes.
- short nDone = 0;
+ sal_Int32 nDone = 0;
if( ( m_nPos + n ) > m_nSize )
{
sal_Int32 nOld = m_nPos;