diff --git a/Python/compile.c b/Python/compile.c index 862999d87b8512..33a8679fd8888a 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; }