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
Update Modules/_decimal/_decimal.c
  • Loading branch information
vstinner authored Sep 28, 2024
commit f7dd655176425adf913fa21ee0747e916e71ab0c
4 changes: 2 additions & 2 deletions Modules/_decimal/_decimal.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,9 @@ static inline decimal_state *
get_module_state_from_ctx(PyObject *v)
{
assert(PyType_GetBaseByToken(Py_TYPE(v), &context_spec, NULL) == 1);
void *state = ((PyDecContextObject *)v)->modstate;
decimal_state *state = ((PyDecContextObject *)v)->modstate;
assert(state != NULL);
return (decimal_state *)state;
return state;
}


Expand Down