Просмотр исходного кода

explicit cast to int in SDL_bits

Andrei Rafael Brongel 1 год назад
Родитель
Сommit
86ef790a23
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      include/SDL3/SDL_bits.h

+ 1 - 1
include/SDL3/SDL_bits.h

@@ -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