Skip to content

Commit 86e104a

Browse files
author
Victor Stinner
committed
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
1 parent e0c9a75 commit 86e104a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/signalmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ signal_pthread_kill(PyObject *self, PyObject *args)
688688
if (!PyArg_ParseTuple(args, "li:pthread_kill", &tid, &signum))
689689
return NULL;
690690

691-
err = pthread_kill(tid, signum);
691+
err = pthread_kill((pthread_t)tid, signum);
692692
if (err != 0) {
693693
errno = err;
694694
PyErr_SetFromErrno(PyExc_OSError);

0 commit comments

Comments
 (0)