utfebcdic.h: Remove extra parameter expansions
authorJohn Goodyear <johngood@us.ibm.com>
Sat, 2 Mar 2013 18:49:14 +0000 (11:49 -0700)
committerKarl Williamson <public@khwilliamson.com>
Thu, 29 Aug 2013 15:55:59 +0000 (09:55 -0600)
These two macros were improperly expanding the parameters as well as
defining the operation, leading to compile errors.

utfebcdic.h

index 856bcd7..b5a33f8 100644 (file)
@@ -676,8 +676,8 @@ END_EXTERN_C
 #define NATIVE_TO_LATIN1(ch)            PL_e2a[(U8)(ch)]
 #define LATIN1_TO_NATIVE(ch)            PL_a2e[(U8)(ch)]
 
-#define NATIVE_UTF8_TO_I8(ch) (ch)      PL_e2utf[(U8)(ch)]
-#define I8_TO_NATIVE_UTF8(ch) (ch)      PL_utf2e[(U8)(ch)]
+#define NATIVE_UTF8_TO_I8(ch)           PL_e2utf[(U8)(ch)]
+#define I8_TO_NATIVE_UTF8(ch)           PL_utf2e[(U8)(ch)]
 
 /* Transforms in wide UV chars */
 #define NATIVE_TO_UNI(ch)        (((ch) > 255) ? (ch) : NATIVE_TO_LATIN1(ch))