Fixed the BITMASK_CHECK macro to actually compare to the mask.

This commit is contained in:
skarg
2017-01-01 05:23:51 +00:00
parent 2bb0045028
commit 13c85c5aea
+1 -1
View File
@@ -71,7 +71,7 @@
#define BITMASK_SET(x,y) ((x) |= (y))
#define BITMASK_CLEAR(x,y) ((x) &= (~(y)))
#define BITMASK_FLIP(x,y) ((x) ^= (y))
#define BITMASK_CHECK(x,y) ((x) & (y))
#define BITMASK_CHECK(x,y) (((x) & (y)) == (y))
#ifndef _BV
#define _BV(x) (1<<(x))