[Libreoffice-commits] core.git: basegfx/source
Thorsten Behrens
tbehrens at suse.com
Mon Oct 7 11:39:01 PDT 2013
basegfx/source/polygon/b2dpolypolygontools.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit dae96f3cf7642a0bf42ad65d24b8a018ab7abefc
Author: Thorsten Behrens <tbehrens at suse.com>
Date: Mon Oct 7 20:32:57 2013 +0200
Fix a warning, don't hand-calc static array size.
Change-Id: Icc9ec9b3c04479ffe930859d600cd222b3003804
diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx
index 902b39a..11a3e8a 100644
--- a/basegfx/source/polygon/b2dpolypolygontools.cxx
+++ b/basegfx/source/polygon/b2dpolypolygontools.cxx
@@ -615,11 +615,11 @@ namespace basegfx
}
B2DPolygon aCurrSegment;
- const size_t sliceSize=sizeof(numbers)/sizeof(*numbers)/12;
+ const size_t sliceSize=SAL_N_ELEMENTS(numbers)/12;
const int* pCurrSegment=numbers + nNumber*sliceSize;
for( size_t i=0; i<sliceSize; i++, pCurrSegment++)
{
- if( !(*pCurrSegment ^ bLitSegments) )
+ if( !(*pCurrSegment ^ int(bLitSegments)) )
{
const size_t j=2*i;
aCurrSegment.clear();
More information about the Libreoffice-commits
mailing list