In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/7641d82ce3e972a211dd70006d3a88edc8a920d9?hp=7741ceede2c8b7d40e88e361d1264a11871aeb83>

- Log -----------------------------------------------------------------
commit 7641d82ce3e972a211dd70006d3a88edc8a920d9
Author: Karl Williamson <[email protected]>
Date:   Mon Sep 29 12:41:42 2014 -0600

    op_reg_common.h: Nits
    
    Add missing U suffix to unsigned numeric constant; parenthesize macro
    expansions for safety.
-----------------------------------------------------------------------

Summary of changes:
 op_reg_common.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/op_reg_common.h b/op_reg_common.h
index bdb2267..c3f3e7f 100644
--- a/op_reg_common.h
+++ b/op_reg_common.h
@@ -50,7 +50,7 @@ typedef enum {
 } regex_charset;
 
 #define _RXf_PMf_CHARSET_SHIFT ((RXf_PMf_STD_PMMOD_SHIFT)+6)
-#define RXf_PMf_CHARSET (7 << (_RXf_PMf_CHARSET_SHIFT)) /* 3 bits */
+#define RXf_PMf_CHARSET (7U << (_RXf_PMf_CHARSET_SHIFT)) /* 3 bits */
 
 /* Manually decorate these functions here with gcc-style attributes just to
  * avoid making the regex_charset typedef global, which it would need to be for
@@ -110,14 +110,14 @@ get_regex_charset(const U32 flags)
 
 /* These copies need to be numerical or ext/B/Makefile.PL won't think they are
  * constants */
-#define PMf_MULTILINE     1U<<0
-#define PMf_SINGLELINE    1U<<1
-#define PMf_FOLD          1U<<2
-#define PMf_EXTENDED      1U<<3
-#define PMf_EXTENDED_MORE 1U<<4
-#define PMf_KEEPCOPY      1U<<5
-#define PMf_CHARSET       7U<<6
-#define PMf_SPLIT         1U<<9
+#define PMf_MULTILINE     (1U<<0)
+#define PMf_SINGLELINE    (1U<<1)
+#define PMf_FOLD          (1U<<2)
+#define PMf_EXTENDED      (1U<<3)
+#define PMf_EXTENDED_MORE (1U<<4)
+#define PMf_KEEPCOPY      (1U<<5)
+#define PMf_CHARSET       (7U<<6)
+#define PMf_SPLIT         (1U<<9)
 
 #if PMf_MULTILINE != RXf_PMf_MULTILINE || PMf_SINGLELINE != RXf_PMf_SINGLELINE 
|| PMf_FOLD != RXf_PMf_FOLD || PMf_EXTENDED != RXf_PMf_EXTENDED || 
PMf_EXTENDED_MORE != RXf_PMf_EXTENDED_MORE || PMf_KEE ... [89 chars truncated]
 #   error RXf_PMf defines are wrong

--
Perl5 Master Repository

Reply via email to