From: Anthony Baxter Date: Thu, 1 Nov 2001 12:48:28 +0000 (+0000) Subject: backport 2.61. X-Git-Tag: v2.1.2c1~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=449ff25782a281e8f603b90116b642859c7f093f;p=thirdparty%2FPython%2Fcpython.git backport 2.61. Properly use &&. Closes bug #434989. --- diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index 030b5cd6f7a1..13fdfae55b99 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -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)) {