From 231e22facb565ccd2fd68cf7a9544eb6435c8b0d Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Fri, 2 Feb 2001 21:10:53 +0000 Subject: [PATCH] Repair legit compiler warning. --- Modules/_weakref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_weakref.c b/Modules/_weakref.c index dcbcb6b613d..26750da5817 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);