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
Next Next commit
leave dec_richcompare() as is
PyType_GetModuleByDef() is now slower.
  • Loading branch information
neonene authored Sep 20, 2024
commit 967d197467ed2cdb05635a8d61927184f979c3d3
2 changes: 1 addition & 1 deletion Modules/_decimal/_decimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -4660,7 +4660,7 @@ dec_richcompare(PyObject *v, PyObject *w, int op)
uint32_t status = 0;
int a_issnan, b_issnan;
int r;
decimal_state *state = get_module_state_by_def(Py_TYPE(v));
decimal_state *state = find_state_left_or_right(v, w);

#ifdef Py_DEBUG
assert(PyDec_Check(state, v));
Expand Down