cid#1606710 Overflowed constant

Change-Id: Iaf8b6f7ccd5c8dc39901fee4e386c6e0b9c6d4e8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172514
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara
2024-08-26 10:09:10 +01:00
parent fd78b32589
commit 4f12805f6e

View File

@@ -101,7 +101,7 @@ void XMLIndexChapterInfoEntryContext::startFastElement(
case XML_ELEMENT(TEXT, XML_OUTLINE_LEVEL):
{
sal_Int32 nTmp;
if (::sax::Converter::convertNumber(nTmp, aIter.toView(), 0, SAL_MAX_UINT16))
if (::sax::Converter::convertNumber(nTmp, aIter.toView(), 0, SAL_MAX_INT16))
{
//control on range is carried out in the UNO level
nOutlineLevel = static_cast<sal_uInt16>(nTmp);