From: Rafael Garcia-Suarez Date: Thu, 20 Sep 2007 08:59:34 +0000 (+0000) Subject: Don't use ~0 as a version number -- it could overflow. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=48e1361cf2222b49db181701bdd28356903d46d7;p=p5sagit%2Fp5-mst-13.2.git Don't use ~0 as a version number -- it could overflow. p4raw-id: //depot/perl@31920 --- diff --git a/lib/CPANPLUS/t/40_CPANPLUS-Internals-Report.t b/lib/CPANPLUS/t/40_CPANPLUS-Internals-Report.t index b028404..67730a7 100644 --- a/lib/CPANPLUS/t/40_CPANPLUS-Internals-Report.t +++ b/lib/CPANPLUS/t/40_CPANPLUS-Internals-Report.t @@ -104,7 +104,7 @@ my $map = { pre_hook => sub { my $mod = shift; my $clone = $mod->clone; - $clone->status->prereqs( { $ModPrereq => ~0 } ); + $clone->status->prereqs( { $ModPrereq => ~0/2 } ); return $clone; }, failed => 1, @@ -273,7 +273,7 @@ my $map = { } { my $clone = $Mod->clone; - my $prereqs = { $ModPrereq => ~0 }; + my $prereqs = { $ModPrereq => ~0/2 }; $clone->status->prereqs( $prereqs );