summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-06-22 08:15:51 -0600
committerKarl Williamson <khw@cpan.org>2020-07-17 22:04:08 -0600
commit31c69d7a90da7f24a62b69cfafb5b2dc476420c0 (patch)
tree385469b4efbaa0acb9e63e0e157032b04ebbc275 /regexec.c
parent71d483cac543afb2c21fa8856c8fb538fdfeacec (diff)
downloadperl-31c69d7a90da7f24a62b69cfafb5b2dc476420c0.tar.gz
regexec.c: Don't use sizeof()
A future commit will change this array so that its size isn't known at compilation time.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 5cbde65462..9e23bd7222 100644
--- a/regexec.c
+++ b/regexec.c
@@ -10158,7 +10158,7 @@ S_reginclass(pTHX_ regexp * const prog, const regnode * const n, const U8* const
}
else if (flags & ANYOF_LOCALE_FLAGS) {
if ( (flags & ANYOFL_FOLD)
- && c < sizeof(PL_fold_locale)
+ && c < 256
&& ANYOF_BITMAP_TEST(n, PL_fold_locale[c]))
{
match = TRUE;