File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,7 @@ typedef int (*_py_validate_type)(PyTypeObject *);
278278// and if the validation is passed, it will set the ``tp_version`` as valid
279279// tp_version_tag from the ``ty``.
280280extern int _PyType_Validate (PyTypeObject * ty , _py_validate_type validate , unsigned int * tp_version );
281- extern int _PyType_CacheGetItemForSpecialization (PyHeapTypeObject * ht , PyObject * descriptor , uint32_t version );
281+ extern int _PyType_CacheGetItemForSpecialization (PyHeapTypeObject * ht , PyObject * descriptor , uint32_t tp_version );
282282
283283#ifdef __cplusplus
284284}
Original file line number Diff line number Diff line change @@ -1763,8 +1763,8 @@ _Py_Specialize_BinarySubscr(
17631763 specialized_op = BINARY_SUBSCR_DICT ;
17641764 goto success ;
17651765 }
1766- unsigned int version ;
1767- PyObject * descriptor = _PyType_LookupRefAndVersion (container_type , & _Py_ID (__getitem__ ), & version );
1766+ unsigned int tp_version ;
1767+ PyObject * descriptor = _PyType_LookupRefAndVersion (container_type , & _Py_ID (__getitem__ ), & tp_version );
17681768 if (descriptor && Py_TYPE (descriptor ) == & PyFunction_Type ) {
17691769 if (!(container_type -> tp_flags & Py_TPFLAGS_HEAPTYPE )) {
17701770 SPECIALIZATION_FAIL (BINARY_SUBSCR , SPEC_FAIL_SUBSCR_NOT_HEAP_TYPE );
@@ -1792,7 +1792,7 @@ _Py_Specialize_BinarySubscr(
17921792 Py_DECREF (descriptor );
17931793 goto fail ;
17941794 }
1795- if (_PyType_CacheGetItemForSpecialization (ht , descriptor , (uint32_t )version )) {
1795+ if (_PyType_CacheGetItemForSpecialization (ht , descriptor , (uint32_t )tp_version )) {
17961796 specialized_op = BINARY_SUBSCR_GETITEM ;
17971797 Py_DECREF (descriptor );
17981798 goto success ;
You can’t perform that action at this time.
0 commit comments