Skip to content

Commit

Permalink
Use the 3.8 Get API for it to compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
gpshead committed Sep 4, 2022
1 parent 17bd053 commit c9212d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objects/longobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1778,7 +1778,7 @@ long_to_decimal_string_internal(PyObject *aa,
*/
if (size_a >= 10 * _PY_LONG_MAX_STR_DIGITS_THRESHOLD
/ (3 * PyLong_SHIFT) + 2) {
PyInterpreterState *interp = _PyInterpreterState_GET();
PyInterpreterState *interp = _PyInterpreterState_Get();
int max_str_digits = interp->int_max_str_digits;
if ((max_str_digits > 0) &&
(max_str_digits / (3 * PyLong_SHIFT) <= (size_a - 11) / 10)) {
Expand Down

0 comments on commit c9212d5

Please sign in to comment.