summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2016-02-18 21:08:24 -0700
committerKarl Williamson <khw@cpan.org>2016-02-19 10:41:42 -0700
commit911bd04eeef784865e4400fef38495936f905e35 (patch)
tree711e9eabf2fff7d5a1bef5cde25cf9ec6b905312
parent5105e860ee4e854010122018bbdbb8c1c1863539 (diff)
downloadperl-911bd04eeef784865e4400fef38495936f905e35.tar.gz
regcomp.c: Change structure element size and loc
The 'strict' field is only a bool, but was declared I32, which led to warnings on some compilers when it was passed to a function expecting a bool. It is moved to the end of the structure, since it doesn't pack well with the rest.
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 551c97779f..0470c08f9b 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -195,7 +195,6 @@ struct RExC_state_t {
scan_frame *frame_head;
scan_frame *frame_last;
U32 frame_count;
- U32 strict;
#ifdef ADD_TO_REGEXEC
char *starttry; /* -Dr: where regtry was called. */
#define RExC_starttry (pRExC_state->starttry)
@@ -218,6 +217,7 @@ struct RExC_state_t {
#endif
bool seen_unfolded_sharp_s;
+ bool strict;
};
#define RExC_flags (pRExC_state->flags)