summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-08-15 13:49:55 -0600
committerKarl Williamson <khw@cpan.org>2018-08-20 12:44:25 -0600
commitfabc17e98e99c91c611d780a980fc920041e9bae (patch)
treec75d468bc805314e49c66479bd672603b5aa3369
parent891fd405747731eb85d112cac6bb9d04f3425909 (diff)
downloadperl-fabc17e98e99c91c611d780a980fc920041e9bae.tar.gz
regcomp.c: Replace code with fcn that does the same thing
This makes one less place that has to know certain details. Since the function is inline, there should be no change in the compiled code
-rw-r--r--regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 31fc6b4214..ca0c7af7e1 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -8770,7 +8770,7 @@ Perl__new_invlist(pTHX_ IV initial_size)
invlist_set_len(new_list, 0, 0);
/* Force iterinit() to be used to get iteration to work */
- *get_invlist_iter_addr(new_list) = (STRLEN) UV_MAX;
+ invlist_iterfinish(new_list);
*get_invlist_previous_index_addr(new_list) = 0;