Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix an off-by-one just introduced :-(
  • Loading branch information
lizmat committed Nov 7, 2015
1 parent 4b8937f commit 8b834cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Str.pm
Expand Up @@ -881,11 +881,11 @@ my class Str does Stringy { # declared in BOOTSTRAP
if $skip-empty {
nqp::splice($matches,$match-list,$i,
nqp::iseq_i(nqp::chars(nqp::atpos($matches,$i)),0))
while nqp::isge_i($i = nqp::sub_i($i,1),0);
while $i = nqp::sub_i($i,1);
}
else {
nqp::splice($matches,$match-list,$i,0)
while nqp::isge_i($i = nqp::sub_i($i,1),0);
while $i = nqp::sub_i($i,1);
}
}
}
Expand Down

0 comments on commit 8b834cc

Please sign in to comment.