Skip to content

Commit

Permalink
regcomp.c: Modify an assert
Browse files Browse the repository at this point in the history
This newly-added assert could fail, but hasn't so far.  Fix it.
  • Loading branch information
khwilliamson committed Feb 28, 2016
1 parent e2506fa commit ff26755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -8376,7 +8376,7 @@ S_invlist_replace_list_destroys_src(pTHX_ SV * dest, SV * src)
assert(SvTYPE(src) == SVt_INVLIST);
assert(SvTYPE(dest) == SVt_INVLIST);
assert(! invlist_is_iterating(src));
assert(SvCUR(src) < SvLEN(src));
assert(SvCUR(src) == 0 || SvCUR(src) < SvLEN(src));

/* Make sure it ends in the right place with a NUL, as our inversion list
* manipulations aren't careful to keep this true, but sv_usepvn_flags()
Expand Down

0 comments on commit ff26755

Please sign in to comment.