summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2011-08-04 16:25:21 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2011-08-04 16:25:21 +0200
commit213bd7f2f126e8f69cbb9be274ea99581937f193 (patch)
tree7d20c24c5f72b3b1cce61ecb0f2fc6907c90ceda /src/regex.c
parent99aaf75f7c50513f7a6ad6bac21bd8f68290633e (diff)
downloademacs-213bd7f2f126e8f69cbb9be274ea99581937f193.tar.gz
* regex.c (re_iswctype): Remove some redundant boolean conversions.
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c4
1 files changed, 2 insertions, 2 deletions
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: