From b42f9c2cf75742d3fcb611b6f2132da506ef2d6b Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 21 May 2022 09:07:42 +0100 Subject: [PATCH] Fix a type warning in conpty.c. Turns out that standard C 'size_t' and the Win32 API's 'SIZE_T' aren't the same integer type in all cases! They have the same _size_, but in 32-bit, one of them is a typedef for 'unsigned int' and the other for 'unsigned long', leading to annoying pointer-type mismatch warnings. --- windows/conpty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/conpty.c b/windows/conpty.c index ca907020..385a7da3 100644 --- a/windows/conpty.c +++ b/windows/conpty.c @@ -190,7 +190,7 @@ static char *conpty_init(const BackendVtable *vt, Seat *seat, si.StartupInfo.cb = sizeof(si); - size_t attrsize = 0; + SIZE_T attrsize = 0; InitializeProcThreadAttributeList(NULL, 1, 0, &attrsize); si.lpAttributeList = smalloc(attrsize); if (!InitializeProcThreadAttributeList(