diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-17 10:31:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-09-17 17:19:16 +0200 |
commit | 086941f0e60c4a41b84cad9c67ad24f8a70133fc (patch) | |
tree | c01105e48472c8cf3106ceeb6be992d204fb4797 /xmloff | |
parent | b8ef51bc0130f2832b86214dc6ce6315faae325c (diff) |
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>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx index a9657038c7f0..8de2cb40a6a7 100644 --- a/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx +++ b/xmloff/source/text/XMLFootnoteConfigurationImportContext.cxx @@ -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; } |