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
This commit is contained in:
Caolán McNamara 2024-09-20 20:18:11 +01:00
parent 08db079256
commit 5f6cd97220

View file

@ -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;
}