summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-01-21 21:46:19 -0700
committerKarl Williamson <khw@cpan.org>2015-01-21 22:47:28 -0700
commitb195e252a109f69a99d24bd326294c70a9df049a (patch)
tree219f6d5028c47530235230da266c792a3d49df91 /regcomp.c
parent64016071d009e8d6ad2dc5a71b86e0e2741a7037 (diff)
downloadperl-b195e252a109f69a99d24bd326294c70a9df049a.tar.gz
regcomp.c: Silence Win32 compiler warnings
This variable is a boolean with values of 0 and 1, even though it's stored as 32-bits in the struct, to get the simplest store/retrieval code generated, so it's safe to cast it to a bool.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/regcomp.c b/regcomp.c
index 1fbe623767..9a681f3011 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -11659,7 +11659,7 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
FALSE, /* means parse the whole char class */
TRUE, /* allow multi-char folds */
FALSE, /* don't silence non-portable warnings. */
- RExC_strict,
+ (bool) RExC_strict,
NULL);
if (*RExC_parse != ']') {
RExC_parse = oregcomp_parse;
@@ -11895,7 +11895,7 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
FALSE, /* don't silence non-portable warnings.
It would be a bug if these returned
non-portables */
- RExC_strict,
+ (bool) RExC_strict,
NULL);
/* regclass() can only return RESTART_UTF8 if multi-char folds
are allowed. */
@@ -12270,7 +12270,7 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
&result,
&error_msg,
PASS2, /* out warnings */
- RExC_strict,
+ (bool) RExC_strict,
TRUE, /* Output warnings
for non-
portables */
@@ -12299,7 +12299,7 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
&result,
&error_msg,
PASS2, /* out warnings */
- RExC_strict,
+ (bool) RExC_strict,
TRUE, /* Silence warnings
for non-
portables */