summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-07-30 19:18:13 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-07-30 19:18:13 (GMT)
commitc173b488dcf496e9a09024fbcd1104d72f71d226 (patch)
treeddc8d88631bcf26c682cff3b4a311afceb16bca0 /Python/compile.c
parent499b0e638bf0ede8239fe57ed0b2eb76bc04fa49 (diff)
downloadcpython-c173b488dcf496e9a09024fbcd1104d72f71d226.zip
cpython-c173b488dcf496e9a09024fbcd1104d72f71d226.tar.gz
cpython-c173b488dcf496e9a09024fbcd1104d72f71d226.tar.bz2
Add some asserts and update comments
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 5ed9893..bcd67c6 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -3031,6 +3031,7 @@ compiler_boolop(struct compiler *c, expr_ty e)
return 0;
s = e->v.BoolOp.values;
n = asdl_seq_LEN(s) - 1;
+ assert(n >= 0);
for (i = 0; i < n; ++i) {
VISIT(c, expr, (expr_ty)asdl_seq_GET(s, i));
ADDOP_JREL(c, jumpi, end);