]> granicus.if.org Git - python/commitdiff
Fix another error on AIX by using a proper cast.
authorGuido van Rossum <guido@python.org>
Fri, 30 Jun 2000 23:04:18 +0000 (23:04 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 30 Jun 2000 23:04:18 +0000 (23:04 +0000)
Modules/signalmodule.c

index 88f2b9c89cbdcd6b875a54ece4b34e51a7203102..4f6acdce6ee43686924168f0642ea0e94a99a5fe 100644 (file)
@@ -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;