explicit cast to int in SDL_bits

This commit is contained in:
Andrei Rafael Brongel 2024-10-11 21:50:14 -03:00 committed by Sam Lantinga
parent 3cd7e22e8b
commit 86ef790a23
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ SDL_FORCE_INLINE int SDL_MostSignificantBitIndex32(Uint32 x)
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
unsigned long index; unsigned long index;
if (_BitScanReverse(&index, x)) { if (_BitScanReverse(&index, x)) {
return index; return (int)index;
} }
return -1; return -1;
#else #else