diff options
author | Victor Stinner <vstinner@python.org> | 2020-10-27 17:12:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 17:12:53 +0100 |
commit | 37834136d0afe51d274bfc79d8705514cbe73727 (patch) | |
tree | 0e4c6b1f42813363f690e7ad179874d727d2cd79 /Modules/_sre.c | |
parent | a6879d9445f98833c4e300e187956e2a218a2315 (diff) | |
download | cpython-git-37834136d0afe51d274bfc79d8705514cbe73727.tar.gz |
bpo-42161: Modules/ uses _PyLong_GetZero() and _PyLong_GetOne() (GH-22998)
Use _PyLong_GetZero() and _PyLong_GetOne() in Modules/ directory.
_cursesmodule.c and zoneinfo.c are now built with
Py_BUILD_CORE_MODULE macro defined.
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r-- | Modules/_sre.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index 70bd8baa01..fbabeb7c9f 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -41,6 +41,7 @@ static const char copyright[] = #define PY_SSIZE_T_CLEAN #include "Python.h" +#include "pycore_long.h" // _PyLong_GetZero() #include "structmember.h" // PyMemberDef #include "sre.h" @@ -1999,7 +2000,7 @@ match_group(MatchObject* self, PyObject* args) switch (size) { case 0: - result = match_getslice(self, _PyLong_Zero, Py_None); + result = match_getslice(self, _PyLong_GetZero(), Py_None); break; case 1: result = match_getslice(self, PyTuple_GET_ITEM(args, 0), Py_None); |