coverity#736899 Unintended sign extension

Change-Id: I4fcd7df318cec8dccd1516c6d52b7d0c67885a6c
This commit is contained in:
Caolán McNamara
2014-06-18 09:36:24 +01:00
parent ba9e5da2e7
commit 358c1fa7fa

View File

@@ -1037,7 +1037,7 @@ size_t ValueSet::ImplGetItem( const Point& rPos, bool bMove ) const
if (x < mnItemWidth && y < mnItemHeight)
{
// the point is inside item rect and not inside spacing
const size_t item = (mnFirstLine + row) * mnCols + col;
const size_t item = (mnFirstLine + row) * static_cast<size_t>(mnCols) + col;
if (item < mItemList.size())
{
return item;