summaryrefslogtreecommitdiffstats
path: root/usr.bin/tr
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2011-10-14 10:43:55 +0000
committered <ed@FreeBSD.org>2011-10-14 10:43:55 +0000
commit6f6341d894adecf4192cce202051a62b8ba404e6 (patch)
tree8d70a8f8de834a8721fee084eaea486ea9d4e784 /usr.bin/tr
parenta87680cb54c5527863a305ca99760e9368301255 (diff)
downloadFreeBSD-src-6f6341d894adecf4192cce202051a62b8ba404e6.zip
FreeBSD-src-6f6341d894adecf4192cce202051a62b8ba404e6.tar.gz
Put parentheses in the right place.
Noted by: jilles@ Broken by: me. :-(
Diffstat (limited to 'usr.bin/tr')
-rw-r--r--usr.bin/tr/cset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tr/cset.c b/usr.bin/tr/cset.c
index 8c95a90..58a927c 100644
--- a/usr.bin/tr/cset.c
+++ b/usr.bin/tr/cset.c
@@ -153,11 +153,11 @@ cset_in_hard(struct cset *cs, wchar_t ch)
struct csclass *csc;
for (csc = cs->cs_classes; csc != NULL; csc = csc->csc_next)
- if ((csc->csc_invert ^ iswctype(ch, csc->csc_type)) != 0)
+ if (csc->csc_invert ^ (iswctype(ch, csc->csc_type) != 0))
return (cs->cs_invert ^ true);
if (cs->cs_root != NULL) {
cs->cs_root = cset_splay(cs->cs_root, ch);
- return ((cs->cs_invert ^ cset_rangecmp(cs->cs_root, ch)) == 0);
+ return (cs->cs_invert ^ (cset_rangecmp(cs->cs_root, ch) == 0));
}
return (cs->cs_invert ^ false);
}
OpenPOWER on IntegriCloud