aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab <[email protected]>2011-08-04 16:25:21 +0200
committerAndreas Schwab <[email protected]>2011-08-04 16:25:21 +0200
commit213bd7f2f126e8f69cbb9be274ea99581937f193 (patch)
tree7d20c24c5f72b3b1cce61ecb0f2fc6907c90ceda /src
parent99aaf75f7c50513f7a6ad6bac21bd8f68290633e (diff)
* regex.c (re_iswctype): Remove some redundant boolean conversions.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/regex.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f66d301e06..b8a1c3e6e9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-04 Andreas Schwab <[email protected]>
+
+ * regex.c (re_iswctype): Remove some redundant boolean
+ conversions.
+
2011-08-04 Jan Djärv <[email protected]>
* xterm.c (x_find_topmost_parent): New function.
diff --git a/src/regex.c b/src/regex.c
index 545a198acd..d1b835621d 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: