diff --git a/Source/Core/Common/BitUtils.h b/Source/Core/Common/BitUtils.h index bd0801491d..82d347cf97 100644 --- a/Source/Core/Common/BitUtils.h +++ b/Source/Core/Common/BitUtils.h @@ -457,7 +457,7 @@ constexpr int CountTrailingZeros(uint32_t value) return _BitScanForward(&index, value) ? index : 32; } #else - return CountLeadingZerosConst(value); + return CountTrailingZerosConst(value); #endif }