aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/ScintillaTypes.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ScintillaTypes.h b/include/ScintillaTypes.h
index 6b5714b69..5b9b8023f 100644
--- a/include/ScintillaTypes.h
+++ b/include/ScintillaTypes.h
@@ -775,10 +775,10 @@ constexpr KeyMod operator&(KeyMod a, KeyMod b) noexcept {
return static_cast<KeyMod>(static_cast<int>(a) & static_cast<int>(b));
}
-// Test if an enum class value has the bit flag(s) of test set.
+// Test if an enum class value has some bit flag(s) of test set.
template <typename T>
constexpr bool FlagSet(T value, T test) {
- return (static_cast<int>(value) & static_cast<int>(test)) == static_cast<int>(test);
+ return (static_cast<int>(value) & static_cast<int>(test)) != 0;
}
}