Skip to content

Commit cc2c179

Browse files
committed
Implement PyVectorcall_NARGS() on limited C API 3.8
1 parent 3ff0e7e commit cc2c179

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pythoncapi_compat.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ static inline int PyWeakref_GetRef(PyObject *ref, PyObject **pobj)
632632
#endif
633633

634634
// bpo-36974 added PyVectorcall_NARGS() to Python 3.8b1
635-
#if PY_VERSION_HEX < 0x030800B1
635+
#if PY_VERSION_HEX < 0x030800B1 || defined(Py_LIMITED_API)
636636
static inline Py_ssize_t PyVectorcall_NARGS(size_t n)
637637
{
638638
return n & ~PY_VECTORCALL_ARGUMENTS_OFFSET;

0 commit comments

Comments
 (0)