From 5f6cd97220fca3d00647a5a1641f2e3f8b9f3533 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 20 Sep 2024 20:18:11 +0100 Subject: cid#1607193 silence Overflowed constant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If3728d8b5410c26637411335ac2bb28a29a55fc3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173749 Reviewed-by: Caolán McNamara Tested-by: Jenkins --- connectivity/source/drivers/dbase/DIndexIter.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connectivity/source/drivers/dbase/DIndexIter.cxx b/connectivity/source/drivers/dbase/DIndexIter.cxx index 5420d044d5c6..35f5862b1bc2 100644 --- a/connectivity/source/drivers/dbase/DIndexIter.cxx +++ b/connectivity/source/drivers/dbase/DIndexIter.cxx @@ -109,7 +109,7 @@ ONDXKey* OIndexIterator::GetFirstKey(ONDXPage* pPage, const OOperand& rKey) pFoundKey = nullptr; m_aCurLeaf = pPage; - m_nCurNode = pFoundKey ? i : i - 1; + m_nCurNode = pFoundKey ? i : sal_uInt16(i - 1); } return pFoundKey; } -- cgit v1.2.3