Skip to content

Commit

Permalink
Fix Clang warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieantonio committed Jan 5, 2016
1 parent 48ecb2e commit afffeda
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions editop/editop.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ Candidate candidate[];
reduction++;
if (candidate[i].for_deletion)
reduction++;
if (reduction > move_reduction || reduction == move_reduction &&
candidate[i].sync->substr->length < move_length)
if (reduction > move_reduction || (reduction == move_reduction &&
candidate[i].sync->substr->length < move_length))
{
move_i = i;
move_length = candidate[i].sync->substr->length;
Expand Down
2 changes: 1 addition & 1 deletion synctext/synctext.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ char *argv[];
int i;
Synclist synclist1, synclist2;
initialize(&argc, argv, usage, option);
if (argc < 2 || transpose && argc > 2)
if (argc < 2 || (transpose && argc > 2))
error("invalid number of text files");
text = NEW_ARRAY(argc, Text);
for (i = 0; i < argc; i++)
Expand Down
3 changes: 2 additions & 1 deletion vote/vote.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ char *argv[];
if (wfraction &&
!valid_fraction(wfraction, &suspect_weight, &unmarked_weight))
error_string("invalid weight", wfraction);
if (sfraction)
if (sfraction) {
if (valid_fraction(sfraction, &m, &n))
suspect_threshold = actual_voters * unmarked_weight * m / n;
else
error_string("invalid threshold", sfraction);
}
}
/**********************************************************************/

Expand Down

0 comments on commit afffeda

Please sign in to comment.