Skip to content

Commit d8384bc

Browse files
address review number 100
1 parent a3d1b50 commit d8384bc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Python/specialize.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,10 @@ analyze_descriptor(PyTypeObject *type, PyObject *name, PyObject **descr, int sto
533533
if (desc_cls->tp_flags & Py_TPFLAGS_METHOD_DESCRIPTOR) {
534534
return METHOD;
535535
}
536-
if (Py_IS_TYPE(descr, &PyClassMethodDescr_Type)) {
536+
if (Py_IS_TYPE(descriptor, &PyClassMethodDescr_Type)) {
537537
return BUILTIN_CLASSMETHOD;
538538
}
539-
if (Py_IS_TYPE(descr, &PyClassMethod_Type)) {
539+
if (Py_IS_TYPE(descriptor, &PyClassMethod_Type)) {
540540
// Python classmethod(func) object.
541541
return PYTHON_CLASSMETHOD;
542542
}
@@ -842,8 +842,8 @@ _Py_Specialize_LoadMethod(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name,
842842
// to slightly slow down the common case, so that we can specialize this
843843
// uncommon one.
844844
if (owner_cls->tp_dictoffset < 0) {
845-
SPECIALIZATION_FAIL(LOAD_METHOD, SPEC_FAIL_NEGATIVE_DICTOFFSET);
846-
goto fail;
845+
SPECIALIZATION_FAIL(LOAD_METHOD, SPEC_FAIL_NEGATIVE_DICTOFFSET);
846+
goto fail;
847847
}
848848
PyObject **owner_dictptr = _PyObject_GetDictPtr(owner);
849849
int owner_has_dict = (owner_dictptr != NULL && *owner_dictptr != NULL);

0 commit comments

Comments
 (0)