diff options
-rw-r--r-- | Modules/signalmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 26bb940..88f2b9c 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 = PyInt_FromLong((long)SIG_DFL); + x = DefaultHandler = PyLong_FromVoidPtr(SIG_DFL); if (!x || PyDict_SetItemString(d, "SIG_DFL", x) < 0) goto finally; - x = IgnoreHandler = PyInt_FromLong((long)SIG_IGN); + x = IgnoreHandler = PyLong_FromVoidPtr(SIG_IGN); if (!x || PyDict_SetItemString(d, "SIG_IGN", x) < 0) goto finally; |