From 1d0814e3907ed131430c685f5397805b7cd54bfa Mon Sep 17 00:00:00 2001 From: M374LX Date: Mon, 24 Aug 2026 21:33:13 -0300 Subject: [PATCH] Add a cast to win32_window.c --- src/win32_window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/win32_window.c b/src/win32_window.c index 4cdbc789..7083bd45 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -1322,7 +1322,8 @@ static int _glfwCreateNativeWindowWin32(_GLFWwindow* window, const int cursorWidth = GetSystemMetrics(SM_CXCURSOR); const int cursorHeight = GetSystemMetrics(SM_CYCURSOR); - unsigned char* cursorPixels = _glfw_calloc(cursorWidth * cursorHeight, 4); + unsigned char* cursorPixels = + (unsigned char*) _glfw_calloc(cursorWidth * cursorHeight, 4); if (!cursorPixels) return GLFW_FALSE;