diff options
author | Karl Williamson <khw@cpan.org> | 2016-02-18 21:08:24 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2016-02-19 10:41:42 -0700 |
commit | 911bd04eeef784865e4400fef38495936f905e35 (patch) | |
tree | 711e9eabf2fff7d5a1bef5cde25cf9ec6b905312 | |
parent | 5105e860ee4e854010122018bbdbb8c1c1863539 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |