diff options
Diffstat (limited to 'usr.bin/tr/cset.c')
-rw-r--r-- | usr.bin/tr/cset.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tr/cset.c b/usr.bin/tr/cset.c index 1b42129..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); } |