[Python-checkins] CVS: python/dist/src/Modules signalmodule.c,2.40,2.41
Guido van Rossum
python-dev@python.org
Fri, 30 Jun 2000 16:04:20 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv4629
Modified Files:
signalmodule.c
Log Message:
Fix another error on AIX by using a proper cast.
Index: signalmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/signalmodule.c,v
retrieving revision 2.40
retrieving revision 2.41
diff -C2 -r2.40 -r2.41
*** signalmodule.c 2000/06/28 22:26:21 2.40
--- signalmodule.c 2000/06/30 23:04:18 2.41
***************
*** 357,365 ****
d = PyModule_GetDict(m);
! x = DefaultHandler = PyLong_FromVoidPtr(SIG_DFL);
if (!x || PyDict_SetItemString(d, "SIG_DFL", x) < 0)
goto finally;
! x = IgnoreHandler = PyLong_FromVoidPtr(SIG_IGN);
if (!x || PyDict_SetItemString(d, "SIG_IGN", x) < 0)
goto finally;
--- 357,365 ----
d = PyModule_GetDict(m);
! x = DefaultHandler = PyLong_FromVoidPtr((void *)SIG_DFL);
if (!x || PyDict_SetItemString(d, "SIG_DFL", x) < 0)
goto finally;
! x = IgnoreHandler = PyLong_FromVoidPtr((void *)SIG_IGN);
if (!x || PyDict_SetItemString(d, "SIG_IGN", x) < 0)
goto finally;