mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
bpo-46417: Use _PyType_CAST() in Python directory (GH-30769)
This commit is contained in:
parent
8ee07dda13
commit
7835cbf949
2 changed files with 3 additions and 4 deletions
|
@ -1339,8 +1339,7 @@ specialize_class_call(
|
|||
PyObject *callable, _Py_CODEUNIT *instr,
|
||||
int nargs, SpecializedCacheEntry *cache)
|
||||
{
|
||||
assert(PyType_Check(callable));
|
||||
PyTypeObject *tp = (PyTypeObject *)callable;
|
||||
PyTypeObject *tp = _PyType_CAST(callable);
|
||||
if (_Py_OPCODE(instr[-1]) == PRECALL_METHOD) {
|
||||
SPECIALIZATION_FAIL(CALL_NO_KW, SPEC_FAIL_METHOD_CALL_CLASS);
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue