Mercurial > cpython-lru_cache-weakref
diff Modules/parsermodule.c @ 18247:e3cf3348feca legacy-trunk
Properly use &&. Closes bug #434989.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 23 Jun 2001 19:55:38 +0000 |
| parents | 939b8fffc452 |
| children | c43fe213ee10 |
line wrap: on
line diff
--- a/Modules/parsermodule.c Sat Jun 23 16:30:13 2001 +0000 +++ b/Modules/parsermodule.c Sat Jun 23 19:55:38 2001 +0000 @@ -2524,7 +2524,7 @@ int res = 1; /* result value */ node* next = 0; /* node to process after this one */ - while (res & (tree != 0)) { + while (res && (tree != 0)) { nch = NCH(tree); next = 0; switch (TYPE(tree)) {
