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

georg.brandl python-checkins at python.org
Tue Nov 23 09:00:50 CET 2010


Author: georg.brandl
Date: Tue Nov 23 09:00:50 2010
New Revision: 86707

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


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

Modified: python/branches/release31-maint/Modules/_multiprocessing/semaphore.c
==============================================================================
--- python/branches/release31-maint/Modules/_multiprocessing/semaphore.c	(original)
+++ python/branches/release31-maint/Modules/_multiprocessing/semaphore.c	Tue Nov 23 09:00:50 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