Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 34647:a9f161e36bf9 legacy-trunk
Silence a gcc warning about putting in parentheses around && expressions mixed
with || expressions. Also clarifies intend of 'if' conditional.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Thu, 03 Mar 2005 07:01:48 +0000 |
| parents | 660419bdb4ae |
| children | a0d3f773543d |
line wrap: on
line diff
--- a/Python/compile.c Wed Mar 02 15:10:38 2005 +0000 +++ b/Python/compile.c Thu Mar 03 07:01:48 2005 +0000 @@ -778,13 +778,14 @@ h = i - 3 * j; if (h >= 0 && j <= lastlc && - (opcode == BUILD_TUPLE && - ISBASICBLOCK(blocks, h, 3*(j+1)) || - opcode == BUILD_LIST && + ((opcode == BUILD_TUPLE && + ISBASICBLOCK(blocks, h, 3*(j+1))) || + (opcode == BUILD_LIST && codestr[i+3]==COMPARE_OP && ISBASICBLOCK(blocks, h, 3*(j+2)) && - (GETARG(codestr,i+3)==6 || GETARG(codestr,i+3)==7)) && - tuple_of_constants(&codestr[h], j, consts)) { + (GETARG(codestr,i+3)==6 || + GETARG(codestr,i+3)==7))) && + tuple_of_constants(&codestr[h], j, consts)) { assert(codestr[i] == LOAD_CONST); cumlc = 1; break;
