Skip to content

Commit a208eca

Browse files
committed
Fixed MSVC 32-bit build.
1 parent 4248952 commit a208eca

File tree

1 file changed

+1
-1
lines changed
  • 3rdparty/dawn/src/tint/utils/math

1 file changed

+1
-1
lines changed

3rdparty/dawn/src/tint/utils/math/math.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ inline constexpr bool IsPowerOfTwo(T value) {
5757
inline constexpr uint32_t Log2(uint64_t value) {
5858
#if defined(__clang__) || defined(__GNUC__)
5959
return 63 - static_cast<uint32_t>(__builtin_clzll(value));
60-
#elif defined(_MSC_VER) && !defined(__clang__) && __cplusplus >= 202002L // MSVC and C++20+
60+
#elif 0 //defined(_MSC_VER) && !defined(__clang__) && __cplusplus >= 202002L // MSVC and C++20+
6161
// note: std::is_constant_evaluated() added in C++20
6262
// required here as _BitScanReverse64 is not constexpr
6363
if (!std::is_constant_evaluated()) {

0 commit comments

Comments
 (0)