summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 862999d..33a8679 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -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;
}