Skip to content
Closed
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
apply a _PyType_GetModuleState(cls)
  • Loading branch information
neonene committed Feb 10, 2024
commit 3a89ecec8b60bdf718e7b846f0b161b068fdb5e8
2 changes: 1 addition & 1 deletion Modules/_decimal/_decimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,7 @@ context_copy_impl(PyObject *self, PyTypeObject *cls)
{
PyObject *copy;

decimal_state *state = get_module_state_by_def(Py_TYPE(self));
decimal_state *state = _PyType_GetModuleState(cls);
Comment thread
neonene marked this conversation as resolved.
Outdated
copy = PyObject_CallObject((PyObject *)state->PyDecContext_Type, NULL);
if (copy == NULL) {
return NULL;
Expand Down