Skip to content

Commit

Permalink
Merge pull request #146 from J08nY/fix/op
Browse files Browse the repository at this point in the history
Fix typo for Python <= 3.8.
  • Loading branch information
fchapoton authored Jan 30, 2024
2 parents d212a13 + 18bf393 commit 7cfdfcb
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 7cfdfcb

Please sign in to comment.