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
This commit is contained in:
Victor Stinner 2011-05-09 14:45:38 +02:00
parent e0c9a7533c
commit 86e104a6ab

View file

@ -688,7 +688,7 @@ signal_pthread_kill(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "li:pthread_kill", &tid, &signum))
return NULL;
err = pthread_kill(tid, signum);
err = pthread_kill((pthread_t)tid, signum);
if (err != 0) {
errno = err;
PyErr_SetFromErrno(PyExc_OSError);