utf8.h: Fix UTF8_IS_SUPER defn for EBCDIC
authorKarl Williamson <public@khwilliamson.com>
Wed, 26 Jun 2013 18:05:24 +0000 (12:05 -0600)
committerKarl Williamson <public@khwilliamson.com>
Thu, 29 Aug 2013 15:56:08 +0000 (09:56 -0600)
The parentheses were misplaced, so it wasn't looking at the second byte
of the input string properly.

utf8.h

diff --git a/utf8.h b/utf8.h
index e54c985..1be5a12 100644 (file)
--- a/utf8.h
+++ b/utf8.h
@@ -462,7 +462,7 @@ Perl's extended UTF-8 means we can have start bytes up to FF.
 #ifdef EBCDIC /* Both versions assume well-formed UTF8 */
 #   define UTF8_IS_SUPER(s) (NATIVE_UTF8_TO_I8(* (U8*) (s)) >= 0xF9             \
                          && (NATIVE_UTF8_TO_I8(* (U8*) (s)) > 0xF9              \
-                             || (NATIVE_UTF8_TO_I8(* (U8*) ((s)) + 1 >= 0xA2))))
+                             || (NATIVE_UTF8_TO_I8(* ((U8*) (s) + 1)) >= 0xA2)))
 #else
 #   define UTF8_IS_SUPER(s) (*(U8*) (s) >= 0xF4                                 \
                             && (*(U8*) (s) > 0xF4 || (*((U8*) (s) + 1) >= 0x90)))