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 2, 2024
1 parent 4d96703 commit 0a030cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion link-grammar/dict-common/print-dict.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ static char *display_disjuncts(Dictionary dict, const Dict_node *dn,

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 0a030cb

Please sign in to comment.