Skip to content

Commit 569ddd8

Browse files
committed
Fix typo: Py_REFCNT(second)
1 parent f528d13 commit 569ddd8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/test/test_cext/extension.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ test_setref_strict_aliasing(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(arg
193193
return NULL;
194194
}
195195
first_refcnt = Py_REFCNT(first);
196-
second_refcnt = Py_REFCNT(first);
196+
second_refcnt = Py_REFCNT(second);
197197

198198
// Both pointer arguments alias. The assignment makes first the old value
199199
// that Py_SETREF() must release before storing second.

0 commit comments

Comments
 (0)