[Libreoffice-commits] core.git: sw/source
Miklos Vajna
vmiklos at collabora.co.uk
Wed Feb 7 11:19:11 UTC 2018
sw/source/core/doc/tblrwcl.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit b64bf854909ce72fa6ea2db05c3aef8995cf32d6
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Wed Feb 7 12:18:07 2018 +0100
sw android: fix -Werror,-Wsign-compare
Change-Id: If30b939685aa3dfc79707f0d7d65b92a43a1cd03
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,
More information about the Libreoffice-commits
mailing list