1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-01 12:19:28 +00:00

Put parentheses in the right place.

Noted by:	jilles@
Broken by:	me. :-(
This commit is contained in:
Ed Schouten 2011-10-14 10:43:55 +00:00
parent b7cf00e8d9
commit 50af444a74
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226363

View File

@ -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);
}