From: Guido van Rossum Date: Fri, 30 Jun 2000 23:04:18 +0000 (+0000) Subject: Fix another error on AIX by using a proper cast. X-Git-Tag: v2.0b1~1178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=276fa43fafafa9f9ac211dbe699c0c489f62d3c9;p=thirdparty%2FPython%2Fcpython.git Fix another error on AIX by using a proper cast. --- diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 88f2b9c89cbd..4f6acdce6ee4 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;