]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-131296: Fix incompatible pointer type warning in _winapi.c (GH-131600)
authorChris Eibl <138194463+chris-eibl@users.noreply.github.com>
Mon, 31 Mar 2025 16:33:55 +0000 (18:33 +0200)
committerGitHub <noreply@github.com>
Mon, 31 Mar 2025 16:33:55 +0000 (17:33 +0100)
Modules/_winapi.c

index 9aff28173a504273f7d3554325a9ce74c006a8b5..02817e09b936f377e2edd8e7bfd2021c8cc9d150 100644 (file)
@@ -609,7 +609,7 @@ _winapi_CreateJunction_impl(PyObject *module, LPCWSTR src_path,
         /* overallocate by a few array elements */
         LUID_AND_ATTRIBUTES privs[4];
     } tp, previousTp;
-    int previousTpSize = 0;
+    DWORD previousTpSize = 0;
 
     /* Reparse data buffer */
     const USHORT prefix_len = 4;