1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 02:52:10 +01:00

[util] Fix MSVC build

This commit is contained in:
Georg Lehmann 2021-08-20 22:28:22 +02:00 committed by Joshie
parent 50c6974f3a
commit 3fc1f2cecb

View File

@ -79,7 +79,7 @@ namespace dxvk::bit {
inline uint32_t bsf(uint32_t n) {
#if defined(_MSC_VER) && !defined(__clang__)
DWORD index;
unsigned long index;
_BitScanForward(&index, n);
return uint32_t(index);
#elif defined(__GNUC__) || defined(__clang__)