From 86ef790a231136a3b9486b730fb28b8482328217 Mon Sep 17 00:00:00 2001
From: Andrei Rafael Brongel <[EMAIL REDACTED]>
Date: Fri, 11 Oct 2024 21:50:14 -0300
Subject: [PATCH] explicit cast to int in SDL_bits
---
include/SDL3/SDL_bits.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/SDL3/SDL_bits.h b/include/SDL3/SDL_bits.h
index 15548bc66d0a5..fe2dd81db1432 100644
--- a/include/SDL3/SDL_bits.h
+++ b/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