cid#1608244 Overflowed constant

Change-Id: Ia96ff4eb0840c6136cb6cd0eefee1cc487bce355
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173547
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-09-17 10:31:08 +01:00
parent b8ef51bc01
commit 086941f0e6

View file

@ -176,9 +176,9 @@ void XMLFootnoteConfigurationImportContext::SetAttribute( sal_Int32 nElement,
case XML_ELEMENT(TEXT, XML_OFFSET): // for backwards compatibility with SRC630 & earlier
{
sal_Int32 nTmp;
if (::sax::Converter::convertNumber(nTmp, rValue, 0, SAL_MAX_UINT16))
if (::sax::Converter::convertNumber(nTmp, rValue, 0, SAL_MAX_INT16))
{
nOffset = static_cast<sal_uInt16>(nTmp);
nOffset = static_cast<sal_Int16>(nTmp);
}
break;
}