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-04-24 01:24:05 -0700
commitea109817c48816ba83ac74d523707a14d094b062 (patch)
tree0a7d4381f500c1a96ee0435257bffffd126cf13e /sot
parent5b8f8110183852a3f86f631bec49b8247ba558b4 (diff)
ofz#5747 short->sal_Int32 like in StgDataStrm
Reviewed-on: https://gerrit.libreoffice.org/48756 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 14b227e3707f041f31446d7eead0884ff8326a62) Change-Id: I254c00b1142d7187beabe5d18532efec036de494
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 cd99b76f7388..b038e5f04018 100644
--- a/sot/source/sdstor/stgstrms.cxx
+++ b/sot/source/sdstor/stgstrms.cxx
@@ -1052,7 +1052,7 @@ sal_Int32 StgSmallStrm::Read( void* pBuf, sal_Int32 n )
// small stream is likely to be < 64 KBytes.
if( ( nPos + n ) > nSize )
n = nSize - nPos;
- short nDone = 0;
+ sal_Int32 nDone = 0;
while( n )
{
short nBytes = nPageSize - nOffset;
@@ -1083,7 +1083,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( ( nPos + n ) > nSize )
{
sal_Int32 nOld = nPos;