X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FScalar%2FVec%2FUtil.pm;h=b282f1a4ca4605a16b8d37659371e3d2432f2106;hb=67ef1b78ed684058b943a47d8c2c008718165a2e;hp=497a0489a51a592e94b81f13960197fa13b89962;hpb=69b8e46fc52ec268d6912114824f4c4ab095df6a;p=perl%2Fmodules%2FScalar-Vec-Util.git diff --git a/lib/Scalar/Vec/Util.pm b/lib/Scalar/Vec/Util.pm index 497a048..b282f1a 100644 --- a/lib/Scalar/Vec/Util.pm +++ b/lib/Scalar/Vec/Util.pm @@ -105,7 +105,7 @@ sub vcopy_pp ($$$$$) { croak 'Invalid negative offset' if $fs < 0 or $ts < 0; croak 'Invalid negative length' if $l < 0; my $step = $ts - $fs; - if ($step <= 0) { + if ($step <= 0) { vec($_[2], $_ + $step, 1) = vec($_[0], $_, 1) for $fs .. $fs + $l - 1; } else { # There's a risk of overwriting if $_[0] and $_[2] are the same SV. vec($_[2], $_ + $step, 1) = vec($_[0], $_, 1) for reverse $fs .. $fs + $l - 1; @@ -335,7 +335,7 @@ Tests code coverage report is available at L