diff options
Diffstat (limited to 'ucbhelper/source/provider')
-rw-r--r-- | ucbhelper/source/provider/fd_inputstream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ucbhelper/source/provider/fd_inputstream.cxx b/ucbhelper/source/provider/fd_inputstream.cxx index 32c56b40b0fa..b34e39646a4f 100644 --- a/ucbhelper/source/provider/fd_inputstream.cxx +++ b/ucbhelper/source/provider/fd_inputstream.cxx @@ -99,7 +99,7 @@ namespace ucbhelper sal_Int32 SAL_CALL FdInputStream::available() { - return sal::static_int_cast<sal_Int32>(m_nLength - getPosition()); + return std::min<sal_Int64>(SAL_MAX_INT32, m_nLength - getPosition()); } |