From a820ac7ddce6827d25d7081490548dafa8747de2 Mon Sep 17 00:00:00 2001 From: Ilia Shipitsin Date: Sat, 29 Aug 2026 21:04:51 +0200 Subject: [PATCH] Fix incompatible pointer type warning in Win32InputFromFileLineA Changed the type of `read_size` from `UINT` to `DWORD` in `Win32.c` to resolve a compiler warning (`-Wincompatible-pointer-types`). The Windows API function `ReadFile` expects an `LPDWORD` (a pointer to an `unsigned long`) for the `lpNumberOfBytesRead` parameter, while `UINT` maps to `unsigned int`. --- 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 db00184c..b14d9cc2 100644 --- a/src/Mayaqua/Win32.c +++ b/src/Mayaqua/Win32.c @@ -3341,7 +3341,7 @@ char *Win32InputFromFileLineA() while (true) { char c; - UINT read_size = 0; + DWORD read_size = 0; if (ReadFile(hstdin, &c, 1, &read_size, NULL) == false) {