Commit c7f4af4c authored by Georg Brandl's avatar Georg Brandl

Fix compiler warnings about formatting pid_t as an int, by always casting to long.

parent e194dd60
...@@ -433,7 +433,7 @@ semlock_new(PyTypeObject *type, PyObject *args, PyObject *kwds) ...@@ -433,7 +433,7 @@ semlock_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
return NULL; 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(); SEM_CLEAR_ERROR();
handle = SEM_CREATE(buffer, value, maxvalue); handle = SEM_CREATE(buffer, value, maxvalue);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment