diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 13:27:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 14:52:26 +0100 |
commit | d167d34b9001b59e1b6ebde74f972b972128783a (patch) | |
tree | 844beeccfa35353443fcaf14bcd302e1015013c8 /svx | |
parent | 9c3615fa1a8bd3fe5eabd2f4a6a5548bf723cc61 (diff) |
coverity#706094 Unintended sign extension
and
coverity#706093 Unintended sign extension
coverity#706092 Unintended sign extension
coverity#706091 Unintended sign extension
Change-Id: I64ec74ad8eecdb47a6245086ea6e01716a02cd32
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/colrctrl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/colrctrl.cxx b/svx/source/tbxctrls/colrctrl.cxx index 5209fa9bfca2..56ac8a6f2bfd 100644 --- a/svx/source/tbxctrls/colrctrl.cxx +++ b/svx/source/tbxctrls/colrctrl.cxx @@ -365,7 +365,7 @@ void SvxColorDockingWindow::SetSize() // Scrollbar setzen/entfernen WinBits nBits = aColorSet.GetStyle(); - if ( nLines * nCols >= nCount ) + if ( static_cast<long>(nLines) * nCols >= nCount ) nBits &= ~WB_VSCROLL; else nBits |= WB_VSCROLL; @@ -528,7 +528,7 @@ void SvxColorDockingWindow::Resizing( Size& rNewSize ) // Scrollbar setzen/entfernen WinBits nBits = aColorSet.GetStyle(); - if ( nLines * nCols >= nCount ) + if ( static_cast<long>(nLines) * nCols >= nCount ) nBits &= ~WB_VSCROLL; else nBits |= WB_VSCROLL; |