8000 Use PyInterpreterState_GetID(). · python/cpython@912e5d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 912e5d3

Browse files
Use PyInterpreterState_GetID().
1 parent cc7b3f9 commit 912e5d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/crossinterp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ _PyCrossInterpreterData_Clear(PyInterpreterState *interp,
172172
// This must be called in the owning interpreter.
173173
assert(interp == NULL
174174
|| _PyCrossInterpreterData_INTERPID(data) == -1
175-
|| _PyCrossInterpreterData_INTERPID(data) == interp->id);
175+
|| _PyCrossInterpreterData_INTERPID(data) == PyInterpreterState_GetID(interp));
176176
_xidata_clear(data);
177177
}
178178

0 commit comments

Comments
 (0)
0