Skip to content

Commit 4d8e596

Browse files
Update Objects/odictobject.c
Co-authored-by: Sam Gross <colesbury@gmail.com>
1 parent 587dae8 commit 4d8e596

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/odictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,7 @@ odictiter_iternext_lock_held(PyObject *op)
18201820
/* Handle the items case. */
18211821
result = di->di_result;
18221822

1823-
if (_PyObject_IsUniquelyReferenced(result) == 1) {
1823+
if (_PyObject_IsUniquelyReferenced(result)) {
18241824
/* not in use so we can reuse it
18251825
* (the common case during iteration) */
18261826
Py_INCREF(result);

0 commit comments

Comments
 (0)