diff options
| author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-10-19 20:27:46 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-19 20:27:46 (GMT) |
| commit | 9c8dde0fa5309ae9f83a4faa07f062fcd84df4cf (patch) | |
| tree | 16f0ebdbd2b3c82e8c84af9a94e13b0e2fb1ba5d /Python/sysmodule.c | |
| parent | 52fcba651288ac1c0f9b1fb71379f1dad54ee1da (diff) | |
| download | cpython-9c8dde0fa5309ae9f83a4faa07f062fcd84df4cf.zip cpython-9c8dde0fa5309ae9f83a4faa07f062fcd84df4cf.tar.gz cpython-9c8dde0fa5309ae9f83a4faa07f062fcd84df4cf.tar.bz2 | |
gh-98417: Store int_max_str_digits on the Interpreter State (GH-98418)
Diffstat (limited to 'Python/sysmodule.c')
| -rw-r--r-- | Python/sysmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 2c66415..7081456 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1717,7 +1717,7 @@ sys_get_int_max_str_digits_impl(PyObject *module) /*[clinic end generated code: output=0042f5e8ae0e8631 input=8dab13e2023e60d5]*/ { PyInterpreterState *interp = _PyInterpreterState_GET(); - return PyLong_FromLong(interp->config.int_max_str_digits); + return PyLong_FromLong(interp->long_state.max_str_digits); } /*[clinic input] @@ -1734,7 +1734,7 @@ sys_set_int_max_str_digits_impl(PyObject *module, int maxdigits) { PyThreadState *tstate = _PyThreadState_GET(); if ((!maxdigits) || (maxdigits >= _PY_LONG_MAX_STR_DIGITS_THRESHOLD)) { - tstate->interp->config.int_max_str_digits = maxdigits; + tstate->interp->long_state.max_str_digits = maxdigits; Py_RETURN_NONE; } else { PyErr_Format( |
