diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-09 00:14:11 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2014-03-09 00:24:21 +0100 |
commit | f3199b9ac677a93ee65a1f2df039458560efc020 (patch) | |
tree | a6297b894b181713746b8912ca020d752236b46a /oox | |
parent | 3cea6bb57757ce085f01f0b86b000cfc0592dca7 (diff) |
Fix signed/unsigned comparison
Change-Id: Iedc3b5c20b5f47117f29dcbeaf84efacbd4ce497
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/shapepropertymap.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/drawingml/shapepropertymap.cxx b/oox/source/drawingml/shapepropertymap.cxx index 5a908750f6e1..21281cdd5664 100644 --- a/oox/source/drawingml/shapepropertymap.cxx +++ b/oox/source/drawingml/shapepropertymap.cxx @@ -64,7 +64,8 @@ ShapePropertyInfo::ShapePropertyInfo( const sal_Int32* pnPropertyIds, mbNamedFillBitmapUrl( bNamedFillBitmapUrl ) { 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) break; |