summaryrefslogtreecommitdiffstats
path: root/Modules/_weakref.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/_weakref.c')
-rw-r--r--Modules/_weakref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_weakref.c b/Modules/_weakref.c
index dcbcb6b..26750da 100644
--- a/Modules/_weakref.c
+++ b/Modules/_weakref.c
@@ -34,7 +34,7 @@ new_weakref(void)
result = free_list;
free_list = result->wr_next;
result->ob_type = &PyWeakReference_Type;
- _Py_NewReference(result);
+ _Py_NewReference((PyObject *)result);
}
else {
result = PyObject_NEW(PyWeakReference, &PyWeakReference_Type);