aboutsummaryrefslogtreecommitdiff
path: root/source/enum_set.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/enum_set.h')
-rw-r--r--source/enum_set.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/enum_set.h b/source/enum_set.h
index 2ca62517..6f9be32c 100644
--- a/source/enum_set.h
+++ b/source/enum_set.h
@@ -84,7 +84,7 @@ class EnumSet {
bool Contains(uint32_t word) const {
// We shouldn't call Overflow() since this is a const method.
if (auto bits = AsMask(word)) {
- return mask_ & bits;
+ return (mask_ & bits) != 0;
} else if (auto overflow = overflow_.get()) {
return overflow->find(word) != overflow->end();
}