Fri May 3 03:14:02 1996 Ulrich Drepper <drepper@cygnus.com>
authorroland <roland>
Fri, 3 May 1996 17:43:45 +0000 (17:43 +0000)
committerroland <roland>
Fri, 3 May 1996 17:43:45 +0000 (17:43 +0000)
* wctype/test_wctype.c: Fix controlling comparison after change to
        32 bit character class array.

wctype/test_wctype.c

index bf3de17..bc2c7e9 100644 (file)
@@ -48,7 +48,7 @@ main (int argc, char *argv[])
     {
 #define TEST(test)                                                           \
       do                                                                     \
-       if (is##test (ch) != iswctype ((wchar_t) ch, bit_##test))             \
+       if ((is##test (ch) == 0) != (iswctype (ch, bit_##test)) == 0)         \
          {                                                                   \
            printf ("class `%s' test for character \\%o failed\n",            \
                    #test, ch);                                               \