Resolve C4800 Visual C++ warning

This commit is contained in:
Dmitry-Me 2019-12-16 18:11:12 +03:00
parent 4a8ced29c4
commit 7d6582c7a5
1 changed files with 1 additions and 1 deletions

View File

@ -247,7 +247,7 @@ public:
bool isSameFamily(const TemplateSimplifier::TokenAndName &decl) const { bool isSameFamily(const TemplateSimplifier::TokenAndName &decl) const {
// Make sure a family flag is set and matches. // Make sure a family flag is set and matches.
// This works because at most only one flag will be set. // This works because at most only one flag will be set.
return (mFlags & fFamilyMask) & (decl.mFlags & (fFamilyMask)); return ((mFlags & fFamilyMask) & (decl.mFlags & fFamilyMask)) != 0;
} }
}; };