Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 39317:d0e6170704de legacy-trunk
Add some asserts and update comments
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sun, 30 Jul 2006 19:18:13 +0000 |
| parents | 1805e684dc92 |
| children | b90a8b0395bd |
line wrap: on
line diff
--- a/Python/compile.c Sun Jul 30 16:41:30 2006 +0000 +++ b/Python/compile.c Sun Jul 30 19:18:13 2006 +0000 @@ -3031,6 +3031,7 @@ 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);
