summaryrefslogtreecommitdiff
path: root/diff-stages.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-20 03:15:22 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-20 03:15:22 (GMT)
commitfc4263ce4b6a613622dbe985a8e6aca015789cf1 (patch)
treec37d083322ab4a63d5012ba89a9730f750e02cff /diff-stages.c
parent5e749e259b39a74b31f6c768588b4e628e3802cb (diff)
downloadgit-fc4263ce4b6a613622dbe985a8e6aca015789cf1.zip
git-fc4263ce4b6a613622dbe985a8e6aca015789cf1.tar.gz
git-fc4263ce4b6a613622dbe985a8e6aca015789cf1.tar.bz2
Avoid gcc warning in diff-stages.c
Put explicit parentheses around && in ||-expression.
Diffstat (limited to 'diff-stages.c')
-rw-r--r--diff-stages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff-stages.c b/diff-stages.c
index f099814..9d8cc73 100644
--- a/diff-stages.c
+++ b/diff-stages.c
@@ -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. */