]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
backport 2.61.
authorAnthony Baxter <anthonybaxter@gmail.com>
Thu, 1 Nov 2001 12:48:28 +0000 (12:48 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Thu, 1 Nov 2001 12:48:28 +0000 (12:48 +0000)
    Properly use &&. Closes bug #434989.

Modules/parsermodule.c

index 030b5cd6f7a149c8bf368f052482a45f64ac600d..13fdfae55b99edf3df48f19d18f968fd13a5d3cf 100644 (file)
@@ -2524,7 +2524,7 @@ validate_node(node *tree)
     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)) {