Skip to content

Commit afffeda

Browse files
committed
Fix Clang warnings.
1 parent 48ecb2e commit afffeda

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

editop/editop.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ Candidate candidate[];
170170
reduction++;
171171
if (candidate[i].for_deletion)
172172
reduction++;
173-
if (reduction > move_reduction || reduction == move_reduction &&
174-
candidate[i].sync->substr->length < move_length)
173+
if (reduction > move_reduction || (reduction == move_reduction &&
174+
candidate[i].sync->substr->length < move_length))
175175
{
176176
move_i = i;
177177
move_length = candidate[i].sync->substr->length;

synctext/synctext.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ char *argv[];
152152
int i;
153153
Synclist synclist1, synclist2;
154154
initialize(&argc, argv, usage, option);
155-
if (argc < 2 || transpose && argc > 2)
155+
if (argc < 2 || (transpose && argc > 2))
156156
error("invalid number of text files");
157157
text = NEW_ARRAY(argc, Text);
158158
for (i = 0; i < argc; i++)

vote/vote.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,12 @@ char *argv[];
118118
if (wfraction &&
119119
!valid_fraction(wfraction, &suspect_weight, &unmarked_weight))
120120
error_string("invalid weight", wfraction);
121-
if (sfraction)
121+
if (sfraction) {
122122
if (valid_fraction(sfraction, &m, &n))
123123
suspect_threshold = actual_voters * unmarked_weight * m / n;
124124
else
125125
error_string("invalid threshold", sfraction);
126+
}
126127
}
127128
/**********************************************************************/
128129

0 commit comments

Comments
 (0)