summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-02-07 12:18:07 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-02-07 12:18:48 +0100
commitb64bf854909ce72fa6ea2db05c3aef8995cf32d6 (patch)
treeb0857208fc0682362ddff039021ed7e6775474eb
parent403d52a66085db8109024bfe07f2bfc2c4ccdc03 (diff)
sw android: fix -Werror,-Wsign-compare
Change-Id: If30b939685aa3dfc79707f0d7d65b92a43a1cd03
-rw-r--r--sw/source/core/doc/tblrwcl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx
index 889aea171ce1..500791920e84 100644
--- a/sw/source/core/doc/tblrwcl.cxx
+++ b/sw/source/core/doc/tblrwcl.cxx
@@ -3435,7 +3435,7 @@ bool SwTable::SetColWidth( SwTableBox& rAktBox, TableChgWidthHeightType eType,
if( GetFrameFormat()->getIDocumentSettingAccess().get(DocumentSettingId::BROWSE_MODE) &&
!rSz.GetWidthPercent() )
{
- bRet = rSz.GetWidth() < USHRT_MAX - nRelDiff;
+ bRet = static_cast<size_t>(rSz.GetWidth()) < USHRT_MAX - nRelDiff;
bChgLRSpace = bLeft ? rLR.GetLeft() >= nAbsDiff
: rLR.GetRight() >= nAbsDiff;
}
@@ -3506,7 +3506,7 @@ bool SwTable::SetColWidth( SwTableBox& rAktBox, TableChgWidthHeightType eType,
if( bBigger )
{
// If the Table does not have any room to grow, we need to create some!
- if( aSz.GetWidth() + nRelDiff > USHRT_MAX )
+ if( static_cast<size_t>(aSz.GetWidth()) + nRelDiff > USHRT_MAX )
{
// Break down to USHRT_MAX / 2
CR_SetBoxWidth aTmpPara( TableChgWidthHeightType::ColLeft, aSz.GetWidth() / 2,