bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] argp: fix logic in hol_cluster_cmp


From: skimo
Subject: [PATCH] argp: fix logic in hol_cluster_cmp
Date: Wed, 25 Apr 2007 15:57:32 +0200

From: Sven Verdoolaege <address@hidden>

---
 lib/argp-help.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/argp-help.c b/lib/argp-help.c
index 7321480..627bf9e 100644
--- a/lib/argp-help.c
+++ b/lib/argp-help.c
@@ -674,9 +674,9 @@ hol_cluster_cmp (const struct hol_cluster *cl1, const 
struct hol_cluster *cl2)
 {
   /* If one cluster is deeper than the other, use its ancestor at the same
      level, so that finding the common ancestor is straightforward.  */
-  while (cl1->depth < cl2->depth)
+  while (cl1->depth > cl2->depth)
     cl1 = cl1->parent;
-  while (cl2->depth < cl1->depth)
+  while (cl2->depth > cl1->depth)
     cl2 = cl2->parent;
 
   /* Now reduce both clusters to their ancestors at the point where both have
-- 
1.5.1.1.107.g7a159





reply via email to

[Prev in Thread] Current Thread [Next in Thread]