From 213bd7f2f126e8f69cbb9be274ea99581937f193 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 4 Aug 2011 16:25:21 +0200 Subject: [PATCH] * regex.c (re_iswctype): Remove some redundant boolean conversions. --- src/ChangeLog | 5 +++++ src/regex.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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: -- 2.39.2