libeval_compiler: fix string comparison

This commit is contained in:
Tomasz Wlostowski 2020-09-27 16:32:03 +02:00
parent 5874373a0c
commit d2ed27b500
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ bool VALUE::EqualTo( const VALUE* b ) const
return WildCompareString( b->m_valueStr, m_valueStr, false );
}
else
return m_valueStr.CmpNoCase( b->m_valueStr );
return !m_valueStr.CmpNoCase( b->m_valueStr );
}
return false;

View File

@ -116,7 +116,7 @@ static bool testEvalExpr( const wxString& expr, LIBEVAL::VALUE expectedResult,
if( ok )
{
result = *ucode.Run( &context );
ok = ( result == expectedResult );
ok = ( result.EqualTo( &expectedResult ) );
}