Skip to content

Commit 9da617e

Browse files
committed
Fix dictobject.c
1 parent cc910d2 commit 9da617e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6858,7 +6858,7 @@ _PyObject_TryGetInstanceAttribute(PyObject *obj, PyObject *name, PyObject **attr
68586858

68596859
#ifdef Py_GIL_DISABLED
68606860
PyObject *value = _Py_atomic_load_ptr_relaxed(&values->values[ix]);
6861-
if (value == NULL || _Py_TryIncref(&values->values[ix], value)) {
6861+
if (value == NULL || _Py_TryIncrefCompare(&values->values[ix], value)) {
68626862
*attr = value;
68636863
return 0;
68646864
}

0 commit comments

Comments
 (0)