diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2013-10-07 20:32:57 +0200 |
---|---|---|
committer | Thorsten Behrens <thb@documentfoundation.org> | 2013-10-07 20:38:28 +0200 |
commit | dae96f3cf7642a0bf42ad65d24b8a018ab7abefc (patch) | |
tree | 0f5a739b522c6424b3ff09991f5669534340e5af /basegfx | |
parent | f7cb9e4f122a05eec362d6caf3a6fa53942eb116 (diff) |
Fix a warning, don't hand-calc static array size.
Change-Id: Icc9ec9b3c04479ffe930859d600cd222b3003804
Diffstat (limited to 'basegfx')
-rw-r--r-- | basegfx/source/polygon/b2dpolypolygontools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basegfx/source/polygon/b2dpolypolygontools.cxx b/basegfx/source/polygon/b2dpolypolygontools.cxx index 902b39a72548..11a3e8a29615 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(); |