From 276fa43fafafa9f9ac211dbe699c0c489f62d3c9 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 30 Jun 2000 23:04:18 +0000 Subject: Fix another error on AIX by using a proper cast. --- Modules/signalmodule.c | 4 ++-- 1 file 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; -- cgit v0.12