Skip to content

Commit

Permalink
Use PyInterpreterState_GetID().
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsnowcurrently committed Feb 13, 2024
1 parent e246719 commit 79e7ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Python/crossinterp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 79e7ef9

Please sign in to comment.