summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/dom/elementlist.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/unoxml/source/dom/elementlist.cxx b/unoxml/source/dom/elementlist.cxx
index c72e67a10f21..7379ebe1104b 100644
--- a/unoxml/source/dom/elementlist.cxx
+++ b/unoxml/source/dom/elementlist.cxx
@@ -22,6 +22,7 @@
#include <string.h>
#include <cppuhelper/implbase.hxx>
+#include <o3tl/safeint.hxx>
#include <tools/diagnose_ex.h>
#include "element.hxx"
@@ -171,7 +172,7 @@ namespace DOM
if (!m_pElement.is()) { return nullptr; }
buildlist(m_pElement->GetNodePtr());
- if (m_nodevector.size() <= static_cast<size_t>(index)) {
+ if (m_nodevector.size() <= o3tl::make_unsigned(index)) {
throw RuntimeException();
}
Reference< XNode > const xRet(