summaryrefslogtreecommitdiff
path: root/Objects/longobject.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-02-19 13:33:31 +0100
committerGitHub <noreply@github.com>2021-02-19 13:33:31 +0100
commit101bf69ff18a946fed7c274f088878aaf85174cc (patch)
tree40aad6b5b086f5eae0135cd9f695365af3be5a2a /Objects/longobject.c
parent62078101ea1be5d2fc472a3f0d9d135e0bd5cd38 (diff)
downloadcpython-git-101bf69ff18a946fed7c274f088878aaf85174cc.tar.gz
bpo-43268: _Py_IsMainInterpreter() now expects interp (GH-24577)
The _Py_IsMainInterpreter() function now expects interp rather than tstate.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 240e92a41e..c0b4ce079e 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -5719,7 +5719,7 @@ _PyLong_Init(PyThreadState *tstate)
tstate->interp->small_ints[i] = v;
}
- if (_Py_IsMainInterpreter(tstate)) {
+ if (_Py_IsMainInterpreter(tstate->interp)) {
/* initialize int_info */
if (Int_InfoType.tp_name == NULL) {
if (PyStructSequence_InitType2(&Int_InfoType, &int_info_desc) < 0) {