Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use right order of arguments
  • Loading branch information
tiran committed Mar 8, 2022
commit 76e31353d9bb373640b0baad187a0abd3ad5dfcf
6 changes: 3 additions & 3 deletions Modules/signalmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,14 @@ get_signal_state(PyObject *module)


static inline int
compare_handler(PyObject *handler, PyObject *func)
compare_handler(PyObject *func, PyObject *dfl_ign_handler)
{
assert(PyLong_CheckExact(handler));
assert(PyLong_CheckExact(dfl_ign_handler));
if (!PyLong_CheckExact(func)) {
return 0;
}
// Assume that comparison of two PyLong objects will never fail.
return PyObject_RichCompareBool(func, handler, Py_EQ) == 1;
return PyObject_RichCompareBool(func, dfl_ign_handler, Py_EQ) == 1;
}

#ifdef HAVE_GETITIMER
Expand Down