From 81313f0f3a97b35313edc5f878303060d0e1b1c7 Mon Sep 17 00:00:00 2001 From: nanjekyejoannah Date: Fri, 8 May 2020 00:19:22 -0300 Subject: [PATCH 1/3] initialize n->n_col_offset --- Parser/node.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Parser/node.c b/Parser/node.c index f1b70e0f6815be..bdfc6ddab5728a 100644 --- a/Parser/node.c +++ b/Parser/node.c @@ -17,6 +17,7 @@ PyNode_New(int type) n->n_end_col_offset = -1; n->n_nchildren = 0; n->n_child = NULL; + n->n_col_offset = 0; return n; } From dd876458b28b1463bdb2b5f59e248a70b39f97ce Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Fri, 8 May 2020 03:25:29 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Core and Builtins/2020-05-08-03-25-26.bpo-40502.e-VCyL.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2020-05-08-03-25-26.bpo-40502.e-VCyL.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-05-08-03-25-26.bpo-40502.e-VCyL.rst b/Misc/NEWS.d/next/Core and Builtins/2020-05-08-03-25-26.bpo-40502.e-VCyL.rst new file mode 100644 index 00000000000000..b0ea60234634c5 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2020-05-08-03-25-26.bpo-40502.e-VCyL.rst @@ -0,0 +1,2 @@ +Initialize ``n->n_col_offset``. +(Patch by Joannah Nanjekye) \ No newline at end of file From 7d5e737629636805a8e0f6a2d9825aab99d7d7d5 Mon Sep 17 00:00:00 2001 From: nanjekyejoannah Date: Fri, 8 May 2020 17:32:01 -0300 Subject: [PATCH 3/3] Move initialization --- Parser/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser/node.c b/Parser/node.c index bdfc6ddab5728a..8789e01e9b848c 100644 --- a/Parser/node.c +++ b/Parser/node.c @@ -14,10 +14,10 @@ PyNode_New(int type) n->n_str = NULL; n->n_lineno = 0; n->n_end_lineno = 0; + n->n_col_offset = 0; n->n_end_col_offset = -1; n->n_nchildren = 0; n->n_child = NULL; - n->n_col_offset = 0; return n; } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy