Skip to content

Commit 1015021

Browse files
authored
Fixed FLAG_IS_SET to check if all bits in the flag are set in the value (#5441)
1 parent 20dd464 commit 1015021

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rcore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
#define FLAG_SET(n, f) ((n) |= (f))
274274
#define FLAG_CLEAR(n, f) ((n) &= ~(f))
275275
#define FLAG_TOGGLE(n, f) ((n) ^= (f))
276-
#define FLAG_IS_SET(n, f) (((n) & (f)) > 0)
276+
#define FLAG_IS_SET(n, f) (((n) & (f)) == (f))
277277

278278
//----------------------------------------------------------------------------------
279279
// Types and Structures Definition

0 commit comments

Comments
 (0)