mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-98390: Fix source locations of boolean sub-expressions (GH-98396)
This commit is contained in:
parent
debacd9ad5
commit
c051d55ddb
3 changed files with 28 additions and 1 deletions
|
@ -2953,7 +2953,7 @@ compiler_jump_if(struct compiler *c, location *ploc,
|
|||
|
||||
/* general implementation */
|
||||
VISIT(c, expr, e);
|
||||
ADDOP_JUMP(c, *ploc, cond ? POP_JUMP_IF_TRUE : POP_JUMP_IF_FALSE, next);
|
||||
ADDOP_JUMP(c, LOC(e), cond ? POP_JUMP_IF_TRUE : POP_JUMP_IF_FALSE, next);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue