We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4ed7b7 commit fc815ecCopy full SHA for fc815ec
include/pybind11/detail/common.h
@@ -325,9 +325,9 @@
325
// In PyPy 7.3.3, `PyIndex_Check` is implemented by calling `__index__`,
326
// while CPython only considers the existence of `nb_index`/`__index__`.
327
#if !defined(PYPY_VERSION)
328
-# define PYBIND11_INDEX_CHECK(o) PyIndex_Check(o)
+# define PYBIND11_INDEX_CHECK(o) PyIndex_Check(o)
329
#else
330
-# define PYBIND11_INDEX_CHECK(o) hasattr(o, "__index__")
+# define PYBIND11_INDEX_CHECK(o) hasattr(o, "__index__")
331
#endif
332
#define PYBIND11_LONG_AS_LONGLONG(o) PyLong_AsLongLong(o)
333
#define PYBIND11_LONG_FROM_SIGNED(o) PyLong_FromSsize_t((ssize_t) (o))
0 commit comments