summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-06-23 19:55:38 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-06-23 19:55:38 (GMT)
commitb28f6e7c7bbad58e23304e00c5c730bd44b50ba0 (patch)
treeb7cec475951a1cea5d162ba21c80998509d6fd1d /Modules
parent01dfdb3d354877db551a9da7138cad8d96a215a3 (diff)
downloadcpython-b28f6e7c7bbad58e23304e00c5c730bd44b50ba0.zip
cpython-b28f6e7c7bbad58e23304e00c5c730bd44b50ba0.tar.gz
cpython-b28f6e7c7bbad58e23304e00c5c730bd44b50ba0.tar.bz2
Properly use &&. Closes bug #434989.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/parsermodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c
index 030b5cd..13fdfae 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)) {