summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-07-25 11:04:22 (GMT)
committerGitHub <noreply@github.com>2024-07-25 11:04:22 (GMT)
commit6c09b8de5c67406113e8d082e05c9587e35a852a (patch)
tree8b481e69329375e32fa6dfdd5773fcf2eb1f4397 /Parser
parentdc07f65a53baf60d9857186294d3d7ba92d5606d (diff)
downloadcpython-6c09b8de5c67406113e8d082e05c9587e35a852a.zip
cpython-6c09b8de5c67406113e8d082e05c9587e35a852a.tar.gz
cpython-6c09b8de5c67406113e8d082e05c9587e35a852a.tar.bz2
gh-122270: Fix typos in the Py_DEBUG macro name (GH-122271)
Diffstat (limited to 'Parser')
-rw-r--r--Parser/pegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/pegen.c b/Parser/pegen.c
index 6efb547..ac428be 100644
--- a/Parser/pegen.c
+++ b/Parser/pegen.c
@@ -341,7 +341,7 @@ _PyPegen_is_memoized(Parser *p, int type, void *pres)
for (Memo *m = t->memo; m != NULL; m = m->next) {
if (m->type == type) {
-#if defined(PY_DEBUG)
+#if defined(Py_DEBUG)
if (0 <= type && type < NSTATISTICS) {
long count = m->mark - p->mark;
// A memoized negative result counts for one.