Merge pull request #222 from TheLavaBlock/fix-win-build

Fix build - removed usage of DWORD type
This commit is contained in:
Adam Sawicki 2022-01-24 09:36:57 +01:00 committed by GitHub
commit f88a69ba1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3109,7 +3109,7 @@ static inline uint8_t VmaBitScanLSB(uint32_t mask)
static inline uint8_t VmaBitScanMSB(uint64_t mask) static inline uint8_t VmaBitScanMSB(uint64_t mask)
{ {
#ifdef _MSC_VER #ifdef _MSC_VER
DWORD pos; unsigned long pos;
if (_BitScanReverse64(&pos, mask)) if (_BitScanReverse64(&pos, mask))
return static_cast<uint8_t>(pos); return static_cast<uint8_t>(pos);
#else #else
@ -3126,7 +3126,7 @@ static inline uint8_t VmaBitScanMSB(uint64_t mask)
static inline uint8_t VmaBitScanMSB(uint32_t mask) static inline uint8_t VmaBitScanMSB(uint32_t mask)
{ {
#ifdef _MSC_VER #ifdef _MSC_VER
DWORD pos; unsigned long pos;
if (_BitScanReverse(&pos, mask)) if (_BitScanReverse(&pos, mask))
return static_cast<uint8_t>(pos); return static_cast<uint8_t>(pos);
#else #else