Fix a warning, don't hand-calc static array size.
Change-Id: Icc9ec9b3c04479ffe930859d600cd222b3003804
This commit is contained in:
committed by
Thorsten Behrens
parent
f7cb9e4f12
commit
dae96f3cf7
@@ -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();
|
||||
|
Reference in New Issue
Block a user