]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-131296: fix clang-cl warning on Windows in semaphore.c (GH-131595)
authorChris Eibl <138194463+chris-eibl@users.noreply.github.com>
Sat, 22 Mar 2025 22:44:56 +0000 (23:44 +0100)
committerGitHub <noreply@github.com>
Sat, 22 Mar 2025 22:44:56 +0000 (15:44 -0700)
fix clangcl warning

Modules/_multiprocessing/semaphore.c

index 036db2cd4c6c8527a574f0d0bbed03da516f362e..a4a2a866ccbfceb2c286a640463a6d3568176e0b 100644 (file)
@@ -65,7 +65,7 @@ class _multiprocessing.SemLock "SemLockObject *" "&_PyMp_SemLockType"
 #define SEM_UNLINK(name) 0
 
 static int
-_GetSemaphoreValue(HANDLE handle, long *value)
+_GetSemaphoreValue(HANDLE handle, int *value)
 {
     long previous;