Fix another error on AIX by using a proper cast.

This commit is contained in:
Guido van Rossum 2000-06-30 23:04:18 +00:00
parent 9a15c211cf
commit 276fa43faf

View file

@ -356,11 +356,11 @@ initsignal()
/* Add some symbolic constants to the module */ /* Add some symbolic constants to the module */
d = PyModule_GetDict(m); 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) if (!x || PyDict_SetItemString(d, "SIG_DFL", x) < 0)
goto finally; goto finally;
x = IgnoreHandler = PyLong_FromVoidPtr(SIG_IGN); x = IgnoreHandler = PyLong_FromVoidPtr((void *)SIG_IGN);
if (!x || PyDict_SetItemString(d, "SIG_IGN", x) < 0) if (!x || PyDict_SetItemString(d, "SIG_IGN", x) < 0)
goto finally; goto finally;