ProgramMax / max

max is a tool belt for C++
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Fix broken Clang & GCC builds #154

Closed ProgramMax closed 4 years ago

ProgramMax commented 4 years ago

Adding the CountLeadingZeroes functions broke the Clang & GCC builds. This is because for the 16-bit and 8-bit variants, the parameters were expanded to 32-bits. And the extra leading zeros from those extra bits were being included.

This commit fixes the Clang & GCC builds by subtracting those extra bits off the count.