Kaydet (Commit) f3199b9a authored tarafından Matteo Casalin's avatar Matteo Casalin

Fix signed/unsigned comparison

Change-Id: Iedc3b5c20b5f47117f29dcbeaf84efacbd4ce497
üst 3cea6bb5
...@@ -64,7 +64,8 @@ ShapePropertyInfo::ShapePropertyInfo( const sal_Int32* pnPropertyIds, ...@@ -64,7 +64,8 @@ ShapePropertyInfo::ShapePropertyInfo( const sal_Int32* pnPropertyIds,
mbNamedFillBitmapUrl( bNamedFillBitmapUrl ) mbNamedFillBitmapUrl( bNamedFillBitmapUrl )
{ {
assert(pnPropertyIds); assert(pnPropertyIds);
for(size_t i = 0; i < PROP_COUNT; ++i) // normally we should not reach PROP_COUNT but it prevents infinite loops if we hit a bug // normally we should not reach PROP_COUNT but it prevents infinite loops if we hit a bug
for(size_t i = 0; i < static_cast<size_t>(PROP_COUNT); ++i)
{ {
if(pnPropertyIds[i] == PROP_END_LIST) if(pnPropertyIds[i] == PROP_END_LIST)
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment