From: Vincent Pit Date: Sun, 17 May 2009 17:43:59 +0000 (+0200) Subject: Remove an unneeded condition in vfill_pp() X-Git-Tag: v0.06~4 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=e50feae7101fb398848d4e582fc49b898c8faee3;p=perl%2Fmodules%2FScalar-Vec-Util.git Remove an unneeded condition in vfill_pp() --- diff --git a/lib/Scalar/Vec/Util.pm b/lib/Scalar/Vec/Util.pm index da9f033..2bde63f 100644 --- a/lib/Scalar/Vec/Util.pm +++ b/lib/Scalar/Vec/Util.pm @@ -81,7 +81,7 @@ sub vfill_pp ($$$$) { my $SIZE = 32; my $t = int($s / $SIZE) + 1; my $u = int(($s + $l) / $SIZE); - if ($SIZE * $t < $s + $l and $t <= $u) { + if ($SIZE * $t < $s + $l) { # implies $t <= $u vec($_[0], $_, 1) = $x for $s .. $SIZE * $t - 1; vec($_[0], $_, $SIZE) = $x for $t .. $u - 1; vec($_[0], $_, 1) = $x for $SIZE * $u .. $s + $l - 1;