From 79e7ef9c2c552823caf34e4529f32eeba0785622 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Mon, 22 Jan 2024 15:09:30 -0700 Subject: [PATCH] Use PyInterpreterState_GetID(). --- Python/crossinterp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/crossinterp.c b/Python/crossinterp.c index 58afd5198657095..143b261f9a53960 100644 --- a/Python/crossinterp.c +++ b/Python/crossinterp.c @@ -172,7 +172,7 @@ _PyCrossInterpreterData_Clear(PyInterpreterState *interp, // This must be called in the owning interpreter. assert(interp == NULL || _PyCrossInterpreterData_INTERPID(data) == -1 - || _PyCrossInterpreterData_INTERPID(data) == interp->id); + || _PyCrossInterpreterData_INTERPID(data) == PyInterpreterState_GetID(interp)); _xidata_clear(data); }