Sfoglia il codice sorgente

Fixed FLAG_IS_SET to check if all bits in the flag are set in the value

pull/5441/head
Dan Hoang Vu 2 mesi fa
parent
commit
1cc134c3aa
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      src/rcore.c

+ 1
- 1
src/rcore.c Vedi 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

Caricamento…
Annulla
Salva