mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
e0c9a7533c
commit
86e104a6ab
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue