Merge pull request #10832 from tellowkrinkle/FixCTZ

Common: Fix CountTrailingZeros for weird compilers
This commit is contained in:
Admiral H. Curtiss 2022-07-11 02:12:45 +02:00 committed by GitHub
commit 99eef44765
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -457,7 +457,7 @@ constexpr int CountTrailingZeros(uint32_t value)
return _BitScanForward(&index, value) ? index : 32; return _BitScanForward(&index, value) ? index : 32;
} }
#else #else
return CountLeadingZerosConst(value); return CountTrailingZerosConst(value);
#endif #endif
} }