diff options
author | Batuhan Taskaya <batuhan@python.org> | 2021-07-15 23:38:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 23:38:11 (GMT) |
commit | 919ad537510fdc2c750109e0bc4eceea234324b2 (patch) | |
tree | 203dc2bd7d3beeb8623027e0fbead3addac15808 /Python | |
parent | 074e7659f208051b6b973f7fdb654dd22b93aaa2 (diff) | |
download | cpython-919ad537510fdc2c750109e0bc4eceea234324b2.zip cpython-919ad537510fdc2c750109e0bc4eceea234324b2.tar.gz cpython-919ad537510fdc2c750109e0bc4eceea234324b2.tar.bz2 |
bpo-43950: make BinOp specializations more reliable (GH-27126)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/traceback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index 199d3ea..643096c 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -543,7 +543,7 @@ extract_anchors_from_expr(const char *segment_str, expr_ty expr, Py_ssize_t *lef case BinOp_kind: { expr_ty left = expr->v.BinOp.left; expr_ty right = expr->v.BinOp.right; - for (int i = left->end_col_offset + 1; i < right->col_offset; i++) { + for (int i = left->end_col_offset; i < right->col_offset; i++) { if (IS_WHITESPACE(segment_str[i])) { continue; } |