summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff3.c
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2015-09-05 09:47:08 +0000
committerjsg <jsg@openbsd.org>2015-09-05 09:47:08 +0000
commitd927f21f9c49cae2570fbd60317d0bf7ded5b7dc (patch)
tree8094217350101d23feeb73f526a01abb9cb93023 /usr.bin/cvs/diff3.c
parentAvoid unintended problems with operator precedence when doing an (diff)
downloadwireguard-openbsd-d927f21f9c49cae2570fbd60317d0bf7ded5b7dc.tar.xz
wireguard-openbsd-d927f21f9c49cae2570fbd60317d0bf7ded5b7dc.zip
Add brackets to clarify assignments that are the result of a test operator.
ok deraadt@ looks correct millert@ jung@
Diffstat (limited to 'usr.bin/cvs/diff3.c')
-rw-r--r--usr.bin/cvs/diff3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/diff3.c b/usr.bin/cvs/diff3.c
index a15248a1bb7..3a601e430d0 100644
--- a/usr.bin/cvs/diff3.c
+++ b/usr.bin/cvs/diff3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff3.c,v 1.57 2015/01/16 06:40:07 deraadt Exp $ */
+/* $OpenBSD: diff3.c,v 1.58 2015/09/05 09:47:08 jsg Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -548,7 +548,7 @@ merge(size_t m1, size_t m2)
d1 = d13;
d2 = d23;
j = 0;
- while ((t1 = d1 < d13 + m1) | (t2 = d2 < d23 + m2)) {
+ while ((t1 = (d1 < d13 + m1)) | (t2 = (d2 < d23 + m2))) {
if (debug) {
printf("%d,%d=%d,%d %d,%d=%d,%d\n",
d1->old.from, d1->old.to,