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
revert 3a89ece
  • Loading branch information
neonene committed Feb 10, 2024
commit 89172a1a8ecd99233e330cc21c6a32c04e835e63
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 = _PyType_GetModuleState(cls);
decimal_state *state = get_module_state_by_def(Py_TYPE(self));
copy = PyObject_CallObject((PyObject *)state->PyDecContext_Type, NULL);
if (copy == NULL) {
return NULL;
Expand Down