summaryrefslogtreecommitdiff
path: root/unotools/source/streaming
diff options
context:
space:
mode:
Diffstat (limited to 'unotools/source/streaming')
-rw-r--r--unotools/source/streaming/streamhelper.cxx4
-rw-r--r--unotools/source/streaming/streamwrap.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/unotools/source/streaming/streamhelper.cxx b/unotools/source/streaming/streamhelper.cxx
index 9efb0e992419..e2881b7b9a55 100644
--- a/unotools/source/streaming/streamhelper.cxx
+++ b/unotools/source/streaming/streamhelper.cxx
@@ -35,7 +35,7 @@ sal_Int32 SAL_CALL OInputStreamHelper::readBytes(css::uno::Sequence< sal_Int8 >&
if (aData.getLength() < nBytesToRead)
aData.realloc(nBytesToRead);
- sal_Size nRead(0);
+ std::size_t nRead(0);
ErrCode nError = m_xLockBytes->ReadAt(m_nActPos, static_cast<void*>(aData.getArray()), nBytesToRead, &nRead);
m_nActPos += nRead;
@@ -43,7 +43,7 @@ sal_Int32 SAL_CALL OInputStreamHelper::readBytes(css::uno::Sequence< sal_Int8 >&
throw css::io::IOException(OUString(), static_cast<css::uno::XWeak*>(this));
// adjust sequence if data read is lower than the desired data
- if (nRead < (sal_Size)aData.getLength())
+ if (nRead < (std::size_t)aData.getLength())
aData.realloc( nRead );
return nRead;
diff --git a/unotools/source/streaming/streamwrap.cxx b/unotools/source/streaming/streamwrap.cxx
index e64957005a03..92f7aa4165d2 100644
--- a/unotools/source/streaming/streamwrap.cxx
+++ b/unotools/source/streaming/streamwrap.cxx
@@ -62,7 +62,7 @@ sal_Int32 SAL_CALL OInputStreamWrapper::readBytes(css::uno::Sequence< sal_Int8 >
checkError();
// Wenn gelesene Zeichen < MaxLength, css::uno::Sequence anpassen
- if (nRead < (sal_Size)aData.getLength())
+ if (nRead < (std::size_t)aData.getLength())
aData.realloc( nRead );
return nRead;