summaryrefslogtreecommitdiffstats
path: root/Modules/_multiprocessing/semaphore.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-03-13 20:59:55 (GMT)
committerGitHub <noreply@github.com>2019-03-13 20:59:55 (GMT)
commitd53fe5f407ff4b529628b01a1bcbf21a6aad5c3a (patch)
treedb8a8657e379e60b26fe2bfdbad4da612fbb46b9 /Modules/_multiprocessing/semaphore.c
parent10f8ce66884cd7fee2372b8dae08ca8132091574 (diff)
downloadcpython-d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a.zip
cpython-d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a.tar.gz
cpython-d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a.tar.bz2
bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)
Diffstat (limited to 'Modules/_multiprocessing/semaphore.c')
-rw-r--r--Modules/_multiprocessing/semaphore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_multiprocessing/semaphore.c b/Modules/_multiprocessing/semaphore.c
index bb7219e..cbcc64c 100644
--- a/Modules/_multiprocessing/semaphore.c
+++ b/Modules/_multiprocessing/semaphore.c
@@ -141,7 +141,7 @@ semlock_acquire(SemLockObject *self, PyObject *args, PyObject *kwds)
default:
PyErr_Format(PyExc_RuntimeError, "WaitForSingleObject() or "
"WaitForMultipleObjects() gave unrecognized "
- "value %d", res);
+ "value %u", res);
return NULL;
}
}