diff --git a/editeng/source/misc/txtrange.cxx b/editeng/source/misc/txtrange.cxx index 02e452209876..333abe2019df 100644 --- a/editeng/source/misc/txtrange.cxx +++ b/editeng/source/misc/txtrange.cxx @@ -456,7 +456,7 @@ void SvxBoundArgs::Add() nBoolIdx = nBoolIdx - next; nCount = nCount - next; aBoolArr.erase( aBoolArr.begin() + nBoolIdx, aBoolArr.begin() + (nBoolIdx + next) ); - if( nBoolIdx ) + if (nBoolIdx > 0) aBoolArr[ nBoolIdx - 1 ] = false; #if OSL_DEBUG_LEVEL > 1 else diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index d3be3f16906b..c0b854d5de48 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -2507,7 +2507,7 @@ static void ConvertEnhancedCustomShapeEquation( OSL_ENSURE(false, "Attempted out of bound access to rEquationOrder of CustomShape (!)"); } } - nMask <<= 1; + nMask = sal_uInt32(nMask << 1); } } }