Skip to content

Commit 7b72e7b

Browse files
committed
fix
1 parent c555fcd commit 7b72e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5705,7 +5705,7 @@ _PyType_CacheGetItemForSpecialization(PyHeapTypeObject *ht, PyObject *descriptor
57055705
// struct _specialization_cache):
57065706
PyFunctionObject *func = (PyFunctionObject *)descriptor;
57075707
uint32_t version = _PyFunction_GetVersionForCurrentState(func);
5708-
can_cache = _PyFunction_IsVersionValid(version);
5708+
can_cache = can_cache && _PyFunction_IsVersionValid(version);
57095709
#ifdef Py_GIL_DISABLED
57105710
can_cache = can_cache && _PyObject_HasDeferredRefcount(descriptor);
57115711
#endif

0 commit comments

Comments
 (0)