summaryrefslogtreecommitdiffstats
path: root/Modules/signalmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/signalmodule.c')
-rw-r--r--Modules/signalmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index 0ce755f..340445f 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -156,7 +156,7 @@ signal_alarm(PyObject *self, PyObject *args)
if (!PyArg_Parse(args, "i", &t))
return NULL;
/* alarm() returns the number of seconds remaining */
- return PyInt_FromLong(alarm(t));
+ return PyInt_FromLong((long)alarm(t));
}
static char alarm_doc[] =