Skip to content

Commit

Permalink
gh-37194: Fix typo in pycore_long.h for Python <= 3.8.
Browse files Browse the repository at this point in the history
    
This fixes the same issue as in
sagemath/cypari2#146.

Typo was added in dc71bd0.
    
URL: #37194
Reported by: Ján Jančár
Reviewer(s): Gonzalo Tornaría, Sebastian Spindler
  • Loading branch information
Release Manager committed Feb 1, 2024
2 parents 2047481 + a74e59b commit 3212df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/cpython/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 3212df1

Please sign in to comment.