From 08de2c4abc9ddc96b115284e1d06efed9bef2080 Mon Sep 17 00:00:00 2001 From: jakcron Date: Sun, 25 Mar 2018 19:08:34 +0800 Subject: [PATCH] Fix bug in BitMath.h --- lib/libfnd/fnd.vcxproj | 2 ++ lib/libfnd/fnd.vcxproj.filters | 6 ++++++ lib/libfnd/include/fnd/BitMath.h | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/libfnd/fnd.vcxproj b/lib/libfnd/fnd.vcxproj index b74a6d7..5e250b2 100644 --- a/lib/libfnd/fnd.vcxproj +++ b/lib/libfnd/fnd.vcxproj @@ -120,7 +120,9 @@ + + diff --git a/lib/libfnd/fnd.vcxproj.filters b/lib/libfnd/fnd.vcxproj.filters index 3d1dee6..29a6b87 100644 --- a/lib/libfnd/fnd.vcxproj.filters +++ b/lib/libfnd/fnd.vcxproj.filters @@ -39,6 +39,12 @@ Header Files + + Header Files + + + Header Files + diff --git a/lib/libfnd/include/fnd/BitMath.h b/lib/libfnd/include/fnd/BitMath.h index 368dd9a..f3a4ceb 100644 --- a/lib/libfnd/include/fnd/BitMath.h +++ b/lib/libfnd/include/fnd/BitMath.h @@ -11,4 +11,4 @@ This is a 0x40 byte header to prepend to raw EXEFS .code binaries that provide e // Bit math macros #define _BIT(n) BIT(n) -#define _HAS_BIT(val, bit) ((val) & _BIT(bit) != 0) +#define _HAS_BIT(val, bit) (((val) & _BIT(bit)) != 0)