Skip to content

Commit 3212df1

Browse files
author
Release Manager
committed
gh-37194: Fix typo in pycore_long.h for Python <= 3.8. 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
2 parents 2047481 + a74e59b commit 3212df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/cpython/pycore_long.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ _PyLong_SetSignAndDigitCount(PyLongObject *op, int sign, Py_ssize_t size)
8989
{
9090
#if (PY_MAJOR_VERSION == 3) && (PY_MINOR_VERSION < 9)
9191
// The function Py_SET_SIZE is defined starting with python 3.9.
92-
Py_SIZE(o) = size;
92+
Py_SIZE(op) = size;
9393
#else
9494
Py_SET_SIZE(op, sign < 0 ? -size : size);
9595
#endif

0 commit comments

Comments
 (0)