ac56956
From ff58ca57f8442a7e2e74ab4a79a9e542f9a180e7 Mon Sep 17 00:00:00 2001
ac56956
From: Karl Williamson <khw@cpan.org>
ac56956
Date: Mon, 11 Jun 2018 13:26:24 -0600
ac56956
Subject: [PATCH] perl.h: Add parens around macro arguments
ac56956
MIME-Version: 1.0
ac56956
Content-Type: text/plain; charset=UTF-8
ac56956
Content-Transfer-Encoding: 8bit
ac56956
ac56956
Arguments used within macros need to be parenthesized in case they are
ac56956
called with an expression.  This commit changes
ac56956
_CHECK_AND_OUTPUT_WIDE_LOCALE_UTF8_MSG() to do that.
ac56956
ac56956
Signed-off-by: Petr Písař <ppisar@redhat.com>
ac56956
---
ac56956
 perl.h | 2 +-
ac56956
 1 file changed, 1 insertion(+), 1 deletion(-)
ac56956
ac56956
diff --git a/perl.h b/perl.h
ac56956
index 6f04c6facd..3e1f6cd571 100644
ac56956
--- a/perl.h
ac56956
+++ b/perl.h
ac56956
@@ -5632,7 +5632,7 @@ typedef struct am_table_short AMTS;
ac56956
 #    define _CHECK_AND_OUTPUT_WIDE_LOCALE_UTF8_MSG(s, send)                 \
ac56956
 	STMT_START { /* Check if to warn before doing the conversion work */\
ac56956
             if (! PL_in_utf8_CTYPE_locale && ckWARN(WARN_LOCALE)) {         \
ac56956
-                UV cp = utf8_to_uvchr_buf((U8 *) s, (U8 *) send, NULL);     \
ac56956
+                UV cp = utf8_to_uvchr_buf((U8 *) (s), (U8 *) (send), NULL); \
ac56956
                 Perl_warner(aTHX_ packWARN(WARN_LOCALE),                    \
ac56956
                     "Wide character (U+%" UVXf ") in %s",                   \
ac56956
                     (cp == 0)                                               \
ac56956
-- 
ac56956
2.14.4
ac56956