mirror of
https://github.com/python/cpython.git
synced 2025-10-14 02:43:49 +00:00
gh-115999: Add free-threaded specialization for `TO_BOOL
` (gh-126616)
This commit is contained in:
parent
09c240f20c
commit
78a530a578
7 changed files with 168 additions and 69 deletions
2
Python/executor_cases.c.h
generated
2
Python/executor_cases.c.h
generated
|
@ -508,7 +508,7 @@
|
|||
JUMP_TO_JUMP_TARGET();
|
||||
}
|
||||
STAT_INC(TO_BOOL, hit);
|
||||
res = Py_SIZE(value_o) ? PyStackRef_True : PyStackRef_False;
|
||||
res = PyList_GET_SIZE(value_o) ? PyStackRef_True : PyStackRef_False;
|
||||
PyStackRef_CLOSE(value);
|
||||
stack_pointer[-1] = res;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue