1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

CachedValue: Stop suppressing floating point comparison warnings

This commit is contained in:
attila 2023-10-24 15:28:21 +02:00 committed by Attila Szarvas
parent b800890ec6
commit 8c29cab261
2 changed files with 26 additions and 2 deletions

View file

@ -118,9 +118,7 @@ public:
template <typename OtherType>
bool operator== (const OtherType& other) const
{
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wfloat-equal")
return cachedValue == other;
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
}
/** Returns true if the current value of the property (or the fallback value)