Skip to content

Commit

Permalink
display_disjuncts(): Use the returned value of eliminate_duplicate_di…
Browse files Browse the repository at this point in the history
…sjuncts()
  • Loading branch information
ampli committed May 3, 2024
1 parent dc8fb5b commit a9f081c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions link-grammar/dict-common/print-dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,7 @@ static char *display_disjuncts(Dictionary dict, const Dict_node *dn,
max_cost, NULL);

unsigned int dnum0 = count_disjuncts(d);
eliminate_duplicate_disjuncts(d, false);
unsigned int dnum1 = count_disjuncts(d);
unsigned int dnum1 = dnum0 - eliminate_duplicate_disjuncts(d, false);

if ((flags != NULL) && (strchr(flags, 'm') != NULL))
{
Expand Down

0 comments on commit a9f081c

Please sign in to comment.