mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-28 11:57:24 +08:00
explicit cast to int in SDL_bits
This commit is contained in:
committed by
Sam Lantinga
parent
3cd7e22e8b
commit
86ef790a23
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user