Date: Fri, 14 Oct 2011 10:43:56 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r226363 - head/usr.bin/tr Message-ID: <201110141043.p9EAhuZu059854@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ed Date: Fri Oct 14 10:43:55 2011 New Revision: 226363 URL: http://svn.freebsd.org/changeset/base/226363 Log: Put parentheses in the right place. Noted by: jilles@ Broken by: me. :-( Modified: head/usr.bin/tr/cset.c Modified: head/usr.bin/tr/cset.c ============================================================================== --- head/usr.bin/tr/cset.c Fri Oct 14 07:28:39 2011 (r226362) +++ head/usr.bin/tr/cset.c Fri Oct 14 10:43:55 2011 (r226363) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110141043.p9EAhuZu059854>