Fix bug in BitMath.h

This commit is contained in:
jakcron 2018-03-25 19:08:34 +08:00
parent 1d934bf0a7
commit 08de2c4abc
3 changed files with 9 additions and 1 deletions

View file

@ -120,7 +120,9 @@
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="include\fnd\BitMath.h" />
<ClInclude Include="include\fnd\elf.h" />
<ClInclude Include="include\fnd\Endian.h" />
<ClInclude Include="include\fnd\Exception.h" />
<ClInclude Include="include\fnd\io.h" />
<ClInclude Include="include\fnd\ISerialiseableBinary.h" />

View file

@ -39,6 +39,12 @@
<ClInclude Include="include\fnd\types.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\fnd\BitMath.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\fnd\Endian.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="source\Exception.cpp">

View file

@ -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)