* regex.c (re_iswctype): Remove some redundant boolean conversions.
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 4 Aug 2011 14:25:21 +0000 (16:25 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Thu, 4 Aug 2011 14:25:21 +0000 (16:25 +0200)
src/ChangeLog
src/regex.c

index f66d301..b8a1c3e 100644 (file)
@@ -1,3 +1,8 @@
+2011-08-04  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * regex.c (re_iswctype): Remove some redundant boolean
+       conversions.
+
 2011-08-04  Jan Djärv  <jan.h.d@swipnet.se>
 
        * xterm.c (x_find_topmost_parent): New function.
index 545a198..d1b8356 100644 (file)
@@ -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: