From: Andreas Schwab Date: Thu, 4 Aug 2011 14:25:21 +0000 (+0200) Subject: * regex.c (re_iswctype): Remove some redundant boolean conversions. X-Git-Tag: emacs-pretest-24.0.90~104^2~124^2~65^2~1 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=213bd7f2f126e8f69cbb9be274ea99581937f193;p=emacs.git * regex.c (re_iswctype): Remove some redundant boolean conversions. --- diff --git a/src/ChangeLog b/src/ChangeLog index f66d301e060..b8a1c3e6e9a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-08-04 Andreas Schwab + + * regex.c (re_iswctype): Remove some redundant boolean + conversions. + 2011-08-04 Jan Djärv * xterm.c (x_find_topmost_parent): New function. diff --git a/src/regex.c b/src/regex.c index 545a198acd7..d1b835621d9 100644 --- a/src/regex.c +++ b/src/regex.c @@ -2106,9 +2106,9 @@ re_iswctype (int ch, re_wctype_t cc) case RECC_UPPER: return ISUPPER (ch) != 0; case RECC_XDIGIT: return ISXDIGIT (ch) != 0; case RECC_ASCII: return IS_REAL_ASCII (ch) != 0; - case RECC_NONASCII: return !IS_REAL_ASCII (ch) != 0; + case RECC_NONASCII: return !IS_REAL_ASCII (ch); case RECC_UNIBYTE: return ISUNIBYTE (ch) != 0; - case RECC_MULTIBYTE: return !ISUNIBYTE (ch) != 0; + case RECC_MULTIBYTE: return !ISUNIBYTE (ch); case RECC_WORD: return ISWORD (ch) != 0; case RECC_ERROR: return false; default: