WaE: signed/unsigned comparison

Change-Id: I736b14b1cc99d5a653fcbb37a5588ff36008dda5
This commit is contained in:
Caolán McNamara
2013-03-08 16:41:23 +00:00
parent 278e30ccd4
commit 6bacf39171

View File

@@ -1962,8 +1962,8 @@ sal_Int32 GetValueForEnhancedCustomShapeParameter( const com::sun::star::drawing
{ {
case com::sun::star::drawing::EnhancedCustomShapeParameterType::EQUATION : case com::sun::star::drawing::EnhancedCustomShapeParameterType::EQUATION :
{ {
OSL_ASSERT(nValue < rEquationOrder.size()); OSL_ASSERT(nValue < static_cast<sal_Int32>(rEquationOrder.size()));
if ( nValue < rEquationOrder.size() ) if ( nValue < static_cast<sal_Int32>(rEquationOrder.size()) )
{ {
nValue = (sal_uInt16)rEquationOrder[ nValue ]; nValue = (sal_uInt16)rEquationOrder[ nValue ];
nValue |= (sal_uInt32)0x80000000; nValue |= (sal_uInt32)0x80000000;