diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-06-18 09:36:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-06-18 11:12:09 +0100 |
commit | 358c1fa7faebd20a6fb9aa3c55503fa411a7bc44 (patch) | |
tree | a54fa159c2249b5d76993c24687cb438b98d65e4 /svtools | |
parent | ba9e5da2e73366a143a651e37a34098509da08b2 (diff) |
coverity#736899 Unintended sign extension
Change-Id: I4fcd7df318cec8dccd1516c6d52b7d0c67885a6c
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueset.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<size_t>(mnCols) + col; if (item < mItemList.size()) { return item; |