summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-20 20:18:11 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-09-21 22:34:01 +0200
commit5f6cd97220fca3d00647a5a1641f2e3f8b9f3533 (patch)
tree7ab4499584c3a2a4bf1e529ecb60a4af9ef2092c
parent08db0792562f23be138c56e347a6c3121ad1512c (diff)
cid#1607193 silence Overflowed constant
Change-Id: If3728d8b5410c26637411335ac2bb28a29a55fc3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173749 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
-rw-r--r--connectivity/source/drivers/dbase/DIndexIter.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}