Skip to content

Commit c9212d5

Browse files
committed
Use the 3.8 Get API for it to compile.
1 parent 17bd053 commit c9212d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/longobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@ long_to_decimal_string_internal(PyObject *aa,
17781778
*/
17791779
if (size_a >= 10 * _PY_LONG_MAX_STR_DIGITS_THRESHOLD
17801780
/ (3 * PyLong_SHIFT) + 2) {
1781-
PyInterpreterState *interp = _PyInterpreterState_GET();
1781+
PyInterpreterState *interp = _PyInterpreterState_Get();
17821782
int max_str_digits = interp->int_max_str_digits;
17831783
if ((max_str_digits > 0) &&
17841784
(max_str_digits / (3 * PyLong_SHIFT) <= (size_a - 11) / 10)) {

0 commit comments

Comments
 (0)