summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2012-02-23 09:01:54 -0700
committerKarl Williamson <public@khwilliamson.com>2012-02-23 09:12:20 -0700
commitdbeb8947c09c5d0f027aba8bb6db953a7ae36235 (patch)
tree159af678ae98e62c19ad33cc792782acfba4980a
parentcae25c36199a38a849dc218d1db9c5fe1938f8dc (diff)
downloadperl-dbeb8947c09c5d0f027aba8bb6db953a7ae36235.tar.gz
regcomp.c: Add cast to silence Solaris warning
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index dd5a37c118..1e1dcfd3a6 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -2715,7 +2715,7 @@ S_join_exact(pTHX_ RExC_state_t *pRExC_state, regnode *scan, UV *min_subtract, b
* This uses an exclusive 'or' to find that bit and then inverts it to
* form a mask, with just a single 0, in the bit position where 'S' and
* 's' differ. */
- const U8 S_or_s_mask = ~ ('S' ^ 's');
+ const U8 S_or_s_mask = (U8) ~ ('S' ^ 's');
const U8 s_masked = 's' & S_or_s_mask;
/* One pass is made over the node's string looking for all the