Skip to content

Commit ff1e744

Browse files
committed
Fix PyTuple_FromArray() on limited C API 3.15
1 parent 40db285 commit ff1e744

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
@@ -2878,7 +2878,7 @@ PyBytesWriter_Format(PyBytesWriter *writer, const char *format, ...)
28782878
#endif // PY_VERSION_HEX < 0x030F00A1
28792879

28802880

2881-
#if PY_VERSION_HEX < 0x030F00A1
2881+
#if PY_VERSION_HEX < 0x030F00A1 || defined(Py_LIMITED_API)
28822882
static inline PyObject*
28832883
PyTuple_FromArray(PyObject *const *array, Py_ssize_t size)
28842884
{

0 commit comments

Comments
 (0)