mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Fix compiler warnings about formatting pid_t as an int, by always casting to long.
This commit is contained in:
parent
e194dd60f0
commit
c7f4af4cbe
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