diff options
-rw-r--r-- | starmath/source/parse.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/parse.cxx b/starmath/source/parse.cxx index b7a0cf0aeba2..a25b3a110a42 100644 --- a/starmath/source/parse.cxx +++ b/starmath/source/parse.cxx @@ -460,7 +460,7 @@ void SmParser::NextToken() --aRes.EndPos; } sal_Int32 n = aRes.EndPos - nRealStart; - OSL_ENSURE( n >= 0, "length < 0" ); + assert(n >= 0); m_aCurToken.eType = TNUMBER; m_aCurToken.cMathChar = '\0'; m_aCurToken.nGroup = TG::NONE; @@ -482,7 +482,7 @@ void SmParser::NextToken() else if (aRes.TokenType & KParseType::IDENTNAME) { sal_Int32 n = aRes.EndPos - nRealStart; - OSL_ENSURE( n >= 0, "length < 0" ); + assert(n >= 0); OUString aName( m_aBufferString.copy( nRealStart, n ) ); const SmTokenTableEntry *pEntry = GetTokenTableEntry( aName ); |