瀏覽代碼

explicit cast to int in SDL_bits

Andrei Rafael Brongel 1 年之前
父節點
當前提交
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