Repositories » libk0
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

match_handler parameter positions switched, because it should read aRb
where a is the new item being compared to the older item b.

Changeset 0b22612dc261

Parent cd3be3421346

by Rup Palchowdhury

Changes to one file · Browse files at 0b22612dc261 Showing diff from parent cd3be3421346 Diff from another changeset...

Change 1 of 2 Show Entire File ktree.c Stacked
 
29
30
31
32
 
33
34
35
 
51
52
53
54
 
55
56
57
 
29
30
31
 
32
33
34
35
 
51
52
53
 
54
55
56
57
@@ -29,7 +29,7 @@
  cmp = (*tnodecmp)(n->data, treep->data);   if (cmp == 0) {   if (match_handler != NULL) - (*match_handler)(treep->data, n->data); + (*match_handler)(n->data, treep->data);   }   else if (cmp < 0)   treep->l = insert(treep->l, n, tnodecmp, match_handler); @@ -51,7 +51,7 @@
  cmp = (*tnodecmp)(newp->data, (*p)->data);   if (cmp == 0) {   if (match_handler != NULL) - (*match_handler)((*p)->data, newp->data); + (*match_handler)(newp->data, (*p)->data);   return treep;   }   else if (cmp < 0)