8000 gh-106078: Move external C-API functions to decimal module global state by CharlieZhao95 · Pull Request #106616 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-106078: Move external C-API functions to decimal module global state #106616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 11, 2023
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
fix build
  • Loading branch information
CharlieZhao95 committed Jul 11, 2023
commit c5e71fecb0a9e5f1b4a5efe7aa39d84b7862a2c3
2 changes: 1 addition & 1 deletion Modules/_decimal/_decimal.c
5F33
Original file line numberDiff line number Diff line change
Expand Up @@ -2322,8 +2322,8 @@ PyDecType_FromFloatExact(PyTypeObject *type, PyObject *v,
uint32_t status = 0;
mpd_context_t maxctx;

#ifdef Py_DEBUG
decimal_state *state = GLOBAL_STATE();
#ifdef Py_DEBUG
assert(PyType_IsSubtype(type, state->PyDec_Type));
#endif
if (PyLong_Check(v)) {
Expand Down
0