Skip to content
Prev Previous commit
Next Next commit
Update Objects/odictobject.c
Co-authored-by: Sam Gross <colesbury@gmail.com>
  • Loading branch information
kumaraditya303 and colesbury authored Oct 13, 2025
commit 4d8e596d946a8aa5fd1c2359c10318fdb929aa9d
2 changes: 1 addition & 1 deletion Objects/odictobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -1820,7 +1820,7 @@ odictiter_iternext_lock_held(PyObject *op)
/* Handle the items case. */
result = di->di_result;

if (_PyObject_IsUniquelyReferenced(result) == 1) {
if (_PyObject_IsUniquelyReferenced(result)) {
/* not in use so we can reuse it
* (the common case during iteration) */
Py_INCREF(result);
Expand Down
Loading