Skip to content

Commit 6970ba4

Browse files
committed
Py_SET_REFCNT doesnt work apparently
1 parent 0b519c9 commit 6970ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ static PyObject* set_ref(PyObject* self, PyObject* args) {
1818
PyObject* obj;
1919
Py_ssize_t count;
2020
if (!PyArg_ParseTuple(args, "On", &obj, &count)) return NULL;
21-
Py_SET_REFCNT(obj, count);
21+
obj->ob_refcnt = count; // i dont care
2222
Py_RETURN_NONE;
2323
}
2424

0 commit comments

Comments
 (0)