Kaydet (Commit) 86e104a6 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #8407: Use an explicit cast for FreeBSD

pthread_t is a pointer, not an integer, on FreeBSD. It should fix the following
gcc warning:

passing argument 1 of ‘pthread_kill’ makes pointer from integer without a cast
üst e0c9a753
...@@ -688,7 +688,7 @@ signal_pthread_kill(PyObject *self, PyObject *args) ...@@ -688,7 +688,7 @@ signal_pthread_kill(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "li:pthread_kill", &tid, &signum)) if (!PyArg_ParseTuple(args, "li:pthread_kill", &tid, &signum))
return NULL; return NULL;
err = pthread_kill(tid, signum); err = pthread_kill((pthread_t)tid, signum);
if (err != 0) { if (err != 0) {
errno = err; errno = err;
PyErr_SetFromErrno(PyExc_OSError); PyErr_SetFromErrno(PyExc_OSError);
......
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