From 358c1fa7faebd20a6fb9aa3c55503fa411a7bc44 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 18 Jun 2014 09:36:24 +0100 Subject: coverity#736899 Unintended sign extension Change-Id: I4fcd7df318cec8dccd1516c6d52b7d0c67885a6c --- svtools/source/control/valueset.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svtools') diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index d99f1d7f8cbc..9f1c72cd7ab1 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -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(mnCols) + col; if (item < mItemList.size()) { return item; -- cgit