mirror of https://github.com/libsdl-org/SDL.git
explicit cast to int in SDL_bits
This commit is contained in:
parent
3cd7e22e8b
commit
86ef790a23
|
|
@ -85,7 +85,7 @@ SDL_FORCE_INLINE int SDL_MostSignificantBitIndex32(Uint32 x)
|
|||
#elif defined(_MSC_VER)
|
||||
unsigned long index;
|
||||
if (_BitScanReverse(&index, x)) {
|
||||
return index;
|
||||
return (int)index;
|
||||
}
|
||||
return -1;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in New Issue