diff options
Diffstat (limited to 'sd/source/filter/html/htmlex.cxx')
-rw-r--r-- | sd/source/filter/html/htmlex.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index 8ee778b8944b..7e60955b1c41 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -25,6 +25,7 @@ #include <sal/log.hxx> #include <rtl/tencinfo.h> #include <comphelper/processfactory.hxx> +#include <o3tl/safeint.hxx> #include <osl/file.hxx> #include <unotools/pathoptions.hxx> #include <unotools/ucbstreamhelper.hxx> @@ -1067,7 +1068,7 @@ OUString HtmlExport::DocumentMetadata() const &aNonConvertableCharacters); const sal_uInt64 nLen = aStream.GetSize(); - OSL_ENSURE(nLen < static_cast<sal_uInt64>(SAL_MAX_INT32), "Stream can't fit in OString"); + OSL_ENSURE(nLen < o3tl::make_unsigned(SAL_MAX_INT32), "Stream can't fit in OString"); OString aData(static_cast<const char*>(aStream.GetData()), static_cast<sal_Int32>(nLen)); return OStringToOUString(aData, RTL_TEXTENCODING_UTF8); |