mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-88057: in compile.c, assertion that stackdepth is alway >=0 is missing in one place (GH-96513)
This commit is contained in:
parent
dde15f5879
commit
0cd992c000
1 changed files with 1 additions and 0 deletions
|
@ -7075,6 +7075,7 @@ stackdepth(basicblock *entryblock, int code_flags)
|
|||
return -1;
|
||||
}
|
||||
int new_depth = depth + effect;
|
||||
assert(new_depth >= 0); /* invalid code or bug in stackdepth() */
|
||||
if (new_depth > maxdepth) {
|
||||
maxdepth = new_depth;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue