summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index a1a18b0..e078091 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -198,7 +198,7 @@ static int
report_wakeup_write_error(void *data)
{
int save_errno = errno;
- errno = (int) (Py_intptr_t) data;
+ errno = (int) (intptr_t) data;
PyErr_SetFromErrno(PyExc_OSError);
PySys_WriteStderr("Exception ignored when trying to write to the "
"signal wakeup fd:\n");
@@ -277,7 +277,7 @@ trip_signal(int sig_num)
if (rc < 0) {
Py_AddPendingCall(report_wakeup_write_error,
- (void *)(Py_intptr_t)errno);
+ (void *)(intptr_t)errno);
}
}
}