Fix self-comparison

Here, a value was being compared for equality with itself. GCC warns that
this is probably a mistake. I'm assuming that here we are meant to write
out a word count when the minimum and maximum counted words are equal?
This commit is contained in:
Philip Chimento 2022-04-06 22:15:20 -07:00
parent f5b5971aac
commit 2eda898ed3
2 changed files with 2 additions and 2 deletions

View file

@ -611,7 +611,7 @@ int TeX::preform_document(weave_format *self, text_stream *OUT, web *W,
if (L->preform_nonterminal_defined->voracious)
WRITE(" (voracious)");
else if (L->preform_nonterminal_defined->min_word_count ==
L->preform_nonterminal_defined->min_word_count)
L->preform_nonterminal_defined->max_word_count)
WRITE(" (%d word%s)",
L->preform_nonterminal_defined->min_word_count,
(L->preform_nonterminal_defined->min_word_count != 1)?"s":"");

View file

@ -28087,7 +28087,7 @@ int TeX__preform_document(weave_format *self, text_stream *OUT, web *W,
if (L->preform_nonterminal_defined->voracious)
WRITE(" (voracious)");
else if (L->preform_nonterminal_defined->min_word_count ==
L->preform_nonterminal_defined->min_word_count)
L->preform_nonterminal_defined->max_word_count)
WRITE(" (%d word%s)",
L->preform_nonterminal_defined->min_word_count,
(L->preform_nonterminal_defined->min_word_count != 1)?"s":"");