From afea5c2f0a9cd07be0982148d78e9e6c3e9805db Mon Sep 17 00:00:00 2001 From: Sergey B Kirpichev Date: Tue, 17 Sep 2024 11:49:26 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Victor Stinner --- peps/pep-0757.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peps/pep-0757.rst b/peps/pep-0757.rst index 95f9ad205b0..fd315a8db8d 100644 --- a/peps/pep-0757.rst +++ b/peps/pep-0757.rst @@ -93,7 +93,7 @@ Export a Python integer as a digits array:: int64_t value; // 1 if the number is negative, 0 otherwise. - int8_t negative; + uint8_t negative; // Number of digits in the 'digits' array. Py_ssize_t ndigits; @@ -105,7 +105,7 @@ Export a Python integer as a digits array:: Py_uintptr_t _reserved; } PyLong_DigitArray; - PyAPI_FUNC(int) PyLong_Export(PyObject *obj, PyLong_DigitArray *array); + int PyLong_Export(PyObject *obj, PyLong_DigitArray *array); On CPython 3.14, no memory copy is needed, it's just a thin wrapper to expose Python int internal digits array.