diff options
Diffstat (limited to 'src/basic/macro.h')
-rw-r--r-- | src/basic/macro.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h index ae88fa5b93..00fb3212db 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -383,7 +383,7 @@ static inline int __coverity_check__(int condition) { #define SET_FLAG(v, flag, b) \ (v) = (b) ? ((v) | (flag)) : ((v) & ~(flag)) #define FLAGS_SET(v, flags) \ - (((v) & (flags)) == (flags)) + ((~(v) & (flags)) == 0) #define CASE_F(X) case X: #define CASE_F_1(CASE, X) CASE_F(X) |