[Python-checkins] r86706 - in python/branches/release27-maint: Modules/_multiprocessing/semaphore.c

georg.brandl python-checkins at python.org
Tue Nov 23 08:56:33 CET 2010


Author: georg.brandl
Date: Tue Nov 23 08:56:33 2010
New Revision: 86706

Log:
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.
........


Modified:
   python/branches/release27-maint/   (props changed)
   python/branches/release27-maint/Modules/_multiprocessing/semaphore.c

Modified: python/branches/release27-maint/Modules/_multiprocessing/semaphore.c
==============================================================================
--- python/branches/release27-maint/Modules/_multiprocessing/semaphore.c	(original)
+++ python/branches/release27-maint/Modules/_multiprocessing/semaphore.c	Tue Nov 23 08:56:33 2010
@@ -433,7 +433,7 @@
         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);


More information about the Python-checkins mailing list