Add some asserts and update comments

This commit is contained in:
Neal Norwitz 2006-07-30 19:18:13 +00:00
parent 499b0e638b
commit c173b488dc
2 changed files with 4 additions and 2 deletions

View file

@ -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);