Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Victor Stinner <[email protected]>
  • Loading branch information
skirpichev and vstinner committed Sep 17, 2024
1 parent 4cded54 commit afea5c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions peps/pep-0757.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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.
Expand Down

0 comments on commit afea5c2

Please sign in to comment.