We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f604eb8 commit 49790b9Copy full SHA for 49790b9
1 file changed
include/boost/python/suite/indexing/detail/indexing_suite_detail.hpp
@@ -216,7 +216,13 @@ namespace boost { namespace python { namespace detail {
216
{
217
for (const_iterator i = proxies.begin(); i != proxies.end(); ++i)
218
219
- if ((*i)->ob_refcnt <= 0)
+ if (
220
+#if PY_VERSION_HEX < 0x03090000
221
+ (*i)->ob_refcnt
222
+#else
223
+ Py_REFCNT(*i)
224
+#endif
225
+ <= 0)
226
227
PyErr_SetString(PyExc_RuntimeError,
228
"Invariant: Proxy vector in an inconsistent state");
0 commit comments