Skip to content

Commit

Permalink
Fix regression in Str.subst(Str:D, Str:D)
Browse files Browse the repository at this point in the history
The TRANSPOSE-ONE routine uses incorrect string's length to figure out
where to cut off the replaced piece.

Also fixes issues with generated wrappers for binaries.
  • Loading branch information
zoffixznet committed Jun 17, 2017
1 parent e824266 commit fb50f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Rakudo/Internals.pm
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ my class Rakudo::Internals {
nqp::substr($string,0,$index),
nqp::concat(
$final,
nqp::substr($string,nqp::add_i($index,nqp::chars($final)))
nqp::substr($string,nqp::add_i($index,nqp::chars($original)))
)
)
)
Expand Down

0 comments on commit fb50f49

Please sign in to comment.