Browse Source

Fixed FLAG_IS_SET to check if all bits in the flag are set in the value (#5441)

pull/5438/merge
Dan Vu 2 days ago
committed by GitHub
parent
commit
101502103a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rcore.c

+ 1
- 1
src/rcore.c View File

@ -273,7 +273,7 @@
#define FLAG_SET(n, f) ((n) |= (f))
#define FLAG_CLEAR(n, f) ((n) &= ~(f))
#define FLAG_TOGGLE(n, f) ((n) ^= (f))
#define FLAG_IS_SET(n, f) (((n) & (f)) > 0)
#define FLAG_IS_SET(n, f) (((n) & (f)) == (f))
//----------------------------------------------------------------------------------
// Types and Structures Definition

Loading…
Cancel
Save