1. Armin Rigo
  2. cpython-withatomic

Commits

Georg Brandl  committed 63f114b

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

  • Participants
  • Parent commits a739883
  • Branches 3.1

Comments (0)

Files changed (1)

File Modules/_multiprocessing/semaphore.c

View file
  • Ignore whitespace
         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);