From f0762ef26b87e4290539f3bebe9fdde6d8587856 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Fri, 12 Jul 2013 11:30:16 -0600 Subject: [PATCH] regcomp.c: Rmv now redundant setting SvCUR is now properly set in invlist_set_len(). There is no need to do it outside that function. --- regcomp.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/regcomp.c b/regcomp.c index 61639ce..b4a5f57 100644 --- a/regcomp.c +++ b/regcomp.c @@ -7265,13 +7265,12 @@ S__new_invlist_C_array(pTHX_ const UV* const list) SvLEN_set(invlist, 0); /* Means we own the contents, and the system shouldn't touch it */ - /* The 'length' passed to us is the physical number of elements in the - * inversion list. */ - SvCUR_set(invlist, TO_INTERNAL_SIZE(length)); *(get_invlist_offset_addr(invlist)) = offset; - /* But if there is an offset the logical number is one less than that */ + /* The 'length' passed to us is the physical number of elements in the + * inversion list. But if there is an offset the logical number is one + * less than that */ invlist_set_len(invlist, length - offset); invlist_set_previous_index(invlist, 0); -- 2.7.4