mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-35059: Cast void* to PyObject* (GH-10650)
Don't pass void* to Python macros: use _PyObject_CAST().
This commit is contained in:
parent
b37672daf6
commit
a42de742e7
4 changed files with 17 additions and 11 deletions
|
@ -1171,8 +1171,9 @@ This function is meant for internal and specialized purposes only.\n\
|
|||
In most applications `threading.enumerate()` should be used instead.");
|
||||
|
||||
static void
|
||||
release_sentinel(void *wr)
|
||||
release_sentinel(void *wr_raw)
|
||||
{
|
||||
PyObject *wr = _PyObject_CAST(wr_raw);
|
||||
/* Tricky: this function is called when the current thread state
|
||||
is being deleted. Therefore, only simple C code can safely
|
||||
execute here. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue