There was an error while loading. Please reload this page.
1 parent 79404e9 commit b1b2071Copy full SHA for b1b2071
1 file changed
pythoncapi_compat.h
@@ -583,7 +583,7 @@ static inline int PyWeakref_GetRef(PyObject *ref, PyObject **pobj)
583
return 0;
584
}
585
*pobj = Py_NewRef(obj);
586
- return (*pobj != NULL);
+ return 1;
587
588
#endif
589
0 commit comments