mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
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. ........
This commit is contained in:
parent
2b4cb96bf7
commit
8d4a932e6c
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue