This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
handy.h: Add missing parentheses to macro #define
authorKarl Williamson <khw@cpan.org>
Fri, 14 Nov 2014 02:48:14 +0000 (19:48 -0700)
committerKarl Williamson <khw@cpan.org>
Fri, 14 Nov 2014 20:38:18 +0000 (13:38 -0700)
These being missing caused 3d3a881c1b0eb9c855d257a2eea1f72666e30fbc
to have to be reverted.  It only shows up on platforms that don't have
an isblank() libc function.

handy.h

diff --git a/handy.h b/handy.h
index 445d495..f23f35d 100644 (file)
--- a/handy.h
+++ b/handy.h
@@ -1393,7 +1393,7 @@ EXTCONST U32 PL_charclass[];
 #if defined(HAS_ISBLANK)
 #   define isBLANK_LC(c) _generic_LC(c, _CC_BLANK, isblank)
 #else /* Unlike isASCII, varies if in a UTF-8 locale */
-#   define isBLANK_LC(c) (IN_UTF8_CTYPE_LOCALE) ? isBLANK_L1(c) : isBLANK(c)
+#   define isBLANK_LC(c) ((IN_UTF8_CTYPE_LOCALE) ? isBLANK_L1(c) : isBLANK(c))
 #endif
 
 #define _LC_CAST U8