From 3d34a201058248cd7334fa4c075082aec4decdc2 Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Mon, 6 Jun 2022 21:03:28 -0500 Subject: [PATCH] Common: Fix CountTrailingZeros for weird compilers --- Source/Core/Common/BitUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }