Skip to content

Commit

Permalink
Fix typo for Python <= 3.8.
Browse files Browse the repository at this point in the history
This was introduced by accident in sagemath#138.
  • Loading branch information
J08nY committed Jan 23, 2024
1 parent d212a13 commit 18bf393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypari2/pycore_long.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ _PyLong_SetSignAndDigitCount(PyLongObject *op, int sign, Py_ssize_t size)
{
#if (PY_MAJOR_VERSION == 3) && (PY_MINOR_VERSION < 9)
// The function Py_SET_SIZE is defined starting with python 3.9.
Py_SIZE(o) = size;
Py_SIZE(op) = size;
#else
Py_SET_SIZE(op, sign < 0 ? -size : size);
#endif
Expand Down

0 comments on commit 18bf393

Please sign in to comment.