Skip to content

Commit 3a89ece

Browse files
committed
apply a _PyType_GetModuleState(cls)
1 parent 7403497 commit 3a89ece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_decimal/_decimal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ context_copy_impl(PyObject *self, PyTypeObject *cls)
15751575
{
15761576
PyObject *copy;
15771577

1578-
decimal_state *state = get_module_state_by_def(Py_TYPE(self));
1578+
decimal_state *state = _PyType_GetModuleState(cls);
15791579
copy = PyObject_CallObject((PyObject *)state->PyDecContext_Type, NULL);
15801580
if (copy == NULL) {
15811581
return NULL;

0 commit comments

Comments
 (0)