Skip to content

Commit

Permalink
Avoid gcc warning in diff-stages.c
Browse files Browse the repository at this point in the history
Put explicit parentheses around && in ||-expression.
  • Loading branch information
Linus Torvalds committed Jun 20, 2005
1 parent 5e749e2 commit fc4263c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff-stages.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ int main(int ac, const char **av)
! (0 <= stage1 && stage1 <= 3) ||
sscanf(av[2], "%d", &stage2) != 1 ||
! (0 <= stage2 && stage2 <= 3) ||
find_copies_harder && detect_rename != DIFF_DETECT_COPY)
(find_copies_harder && detect_rename != DIFF_DETECT_COPY))
usage(diff_stages_usage);

av += 3; /* The rest from av[0] are for paths restriction. */
Expand Down

0 comments on commit fc4263c

Please sign in to comment.