summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-08-19 19:06:01 -0600
committerKarl Williamson <khw@cpan.org>2020-08-19 19:11:45 -0600
commit8272d5bdfa99b9fd92be2d34da4d04eec4c6ddab (patch)
treea4ec9589fd9da1702b3c237aadd03a0b84cfede9 /regexec.c
parenta35255b755271d430494f12ae140641aeb8a1777 (diff)
downloadperl-8272d5bdfa99b9fd92be2d34da4d04eec4c6ddab.tar.gz
Use av_top_index() instead of av_tindex()
I was never happy with this short form, and other people weren't either. Now that most things are better expressed in terms of av_count, convert the few remaining items that are clearer when referring to an index into using the fully spelled out form
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 29f455ead0..e763c0a6ab 100644
--- a/regexec.c
+++ b/regexec.c
@@ -10476,7 +10476,7 @@ S_setup_eval_state(pTHX_ regmatch_info *const reginfo)
/* this regexp is also owned by the new PL_reg_curpm, which
will try to free it. */
av_push(PL_regex_padav, repointer);
- PL_reg_curpm->op_pmoffset = av_tindex(PL_regex_padav);
+ PL_reg_curpm->op_pmoffset = av_top_index(PL_regex_padav);
PL_regex_pad = AvARRAY(PL_regex_padav);
}
#endif