From 7e7a3a76fc146d32621d309fc6335ef5b9961bba Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 23 Nov 2010 07:56:33 +0000 Subject: [PATCH] Merged revisions 85679 via svnmerge from svn+ssh://pythondev@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. ........ --- Modules/_multiprocessing/semaphore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_multiprocessing/semaphore.c b/Modules/_multiprocessing/semaphore.c index 1dfd08eca6f..5bda1ce12a0 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);