summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-06-30 23:04:18 (GMT)
committerGuido van Rossum <guido@python.org>2000-06-30 23:04:18 (GMT)
commit276fa43fafafa9f9ac211dbe699c0c489f62d3c9 (patch)
tree08af798bbf136b0c0abc47f501480ebf3c4e3106 /Modules
parent9a15c211cffefa2da5bda345ac162a6bbe0d69b7 (diff)
downloadcpython-276fa43fafafa9f9ac211dbe699c0c489f62d3c9.zip
cpython-276fa43fafafa9f9ac211dbe699c0c489f62d3c9.tar.gz
cpython-276fa43fafafa9f9ac211dbe699c0c489f62d3c9.tar.bz2
Fix another error on AIX by using a proper cast.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/signalmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index 88f2b9c..4f6acdc 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -356,11 +356,11 @@ initsignal()
/* Add some symbolic constants to the module */
d = PyModule_GetDict(m);
- x = DefaultHandler = PyLong_FromVoidPtr(SIG_DFL);
+ x = DefaultHandler = PyLong_FromVoidPtr((void *)SIG_DFL);
if (!x || PyDict_SetItemString(d, "SIG_DFL", x) < 0)
goto finally;
- x = IgnoreHandler = PyLong_FromVoidPtr(SIG_IGN);
+ x = IgnoreHandler = PyLong_FromVoidPtr((void *)SIG_IGN);
if (!x || PyDict_SetItemString(d, "SIG_IGN", x) < 0)
goto finally;