summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-11-23 08:00:50 (GMT)
committerGeorg Brandl <georg@python.org>2010-11-23 08:00:50 (GMT)
commit8d4a932e6c5d62658374c31f4e2f6c7a0411a0f1 (patch)
tree6095c751cf190678a961751102b3929861548573 /Modules
parent2b4cb96bf7a62dd78ae053b8ac2237ced44aa360 (diff)
downloadcpython-8d4a932e6c5d62658374c31f4e2f6c7a0411a0f1.zip
cpython-8d4a932e6c5d62658374c31f4e2f6c7a0411a0f1.tar.gz
cpython-8d4a932e6c5d62658374c31f4e2f6c7a0411a0f1.tar.bz2
Merged revisions 85679 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r85679 | georg.brandl | 2010-10-18 07:06:18 +0200 (Mo, 18 Okt 2010) | 1 line Fix compiler warnings about formatting pid_t as an int, by always casting to long. ........
Diffstat (limited to 'Modules')
-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 3ab0314..c2cd914 100644
--- a/Modules/_multiprocessing/semaphore.c
+++ b/Modules/_multiprocessing/semaphore.c
@@ -433,7 +433,7 @@ semlock_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
return NULL;
}
- PyOS_snprintf(buffer, sizeof(buffer), "/mp%d-%d", getpid(), counter++);
+ PyOS_snprintf(buffer, sizeof(buffer), "/mp%ld-%d", (long)getpid(), counter++);
SEM_CLEAR_ERROR();
handle = SEM_CREATE(buffer, value, maxvalue);