From adc8f06c025d13434ccff593c9ba5908bf0f1ba1 Mon Sep 17 00:00:00 2001 From: Ilia Shipitsin Date: Sun, 23 Aug 2026 12:24:09 +0200 Subject: [PATCH] Fix -Wincompatible-pointer-types in Win32InitThread Change the type of the `thread_id` variable from `DWORD` to `UINT` in `src/Mayaqua/Win32.c`. This resolves a build error where passing `&thread_id` to `_beginthreadex` was flagged as an incompatible pointer type, because the function expects a pointer to an `unsigned int` rather than a pointer to an `unsigned long` (`DWORD`). --- src/Mayaqua/Win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mayaqua/Win32.c b/src/Mayaqua/Win32.c index 9e7ac49a..db65d457 100644 --- a/src/Mayaqua/Win32.c +++ b/src/Mayaqua/Win32.c @@ -2822,7 +2822,7 @@ bool Win32InitThread(THREAD *t) { WIN32THREAD *w; HANDLE hThread; - DWORD thread_id; + UINT thread_id; WIN32THREADSTARTUPINFO *info; // Validate arguments if (t == NULL)