summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-09 12:45:38 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-09 12:45:38 (GMT)
commit86e104a6ab8d81916a13b01ec892dd006a033359 (patch)
tree7764bc520854b693102fd172ef817b1340e1b4bb
parente0c9a7533cefe3b445a6b55b98f35bfe9dd6dd44 (diff)
downloadcpython-86e104a6ab8d81916a13b01ec892dd006a033359.zip
cpython-86e104a6ab8d81916a13b01ec892dd006a033359.tar.gz
cpython-86e104a6ab8d81916a13b01ec892dd006a033359.tar.bz2
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
-rw-r--r--Modules/signalmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index 7e07b3e..e504669 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -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);