coverity#736899 Unintended sign extension
Change-Id: I4fcd7df318cec8dccd1516c6d52b7d0c67885a6c
This commit is contained in:
@@ -1037,7 +1037,7 @@ size_t ValueSet::ImplGetItem( const Point& rPos, bool bMove ) const
|
|||||||
if (x < mnItemWidth && y < mnItemHeight)
|
if (x < mnItemWidth && y < mnItemHeight)
|
||||||
{
|
{
|
||||||
// the point is inside item rect and not inside spacing
|
// 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())
|
if (item < mItemList.size())
|
||||||
{
|
{
|
||||||
return item;
|
return item;
|
||||||
|
Reference in New Issue
Block a user