diff options
Diffstat (limited to 'comphelper/source/streaming/oslfile2streamwrap.cxx')
-rw-r--r-- | comphelper/source/streaming/oslfile2streamwrap.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/comphelper/source/streaming/oslfile2streamwrap.cxx b/comphelper/source/streaming/oslfile2streamwrap.cxx index 342c4a907e08..198ff1ecea12 100644 --- a/comphelper/source/streaming/oslfile2streamwrap.cxx +++ b/comphelper/source/streaming/oslfile2streamwrap.cxx @@ -120,8 +120,7 @@ sal_Int32 SAL_CALL OSLInputStreamWrapper::available() eError = m_pFile->setPos(osl_Pos_Absolut, nPos); if (eError != FileBase::E_None) throw css::io::NotConnectedException(OUString(),static_cast<css::uno::XWeak*>(this)); - return sal::static_int_cast< sal_Int32 >( - std::max(nAvailable, sal::static_int_cast< sal_uInt64 >(SAL_MAX_INT32))); + return std::min<sal_Int64>(nAvailable, SAL_MAX_INT32); } |