From: Craig A. Berry Date: Sat, 23 Apr 2005 18:25:52 +0000 (-0500) Subject: lib/Time/Local.t: time_t is unsigned on VMS X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5c415a7a73a5d8a3f7e2df6cfea8750870e920aa;p=p5sagit%2Fp5-mst-13.2.git lib/Time/Local.t: time_t is unsigned on VMS From: "Craig A. Berry" Message-ID: <426AD980.2010801@mac.com> p4raw-id: //depot/perl@24310 --- diff --git a/lib/Time/Local.t b/lib/Time/Local.t index 30a6d14..b2c1215 100755 --- a/lib/Time/Local.t +++ b/lib/Time/Local.t @@ -56,7 +56,10 @@ my @neg_time = my $neg_epoch_ok = defined ((localtime(-3600))[0]) ? 1 : 0; # use vmsish 'time' makes for oddness around the Unix epoch -if ($^O eq 'VMS') { $time[0][2]++ } +if ($^O eq 'VMS') { + $time[0][2]++; + $neg_epoch_ok = 0; # time_t is unsigned +} my $tests = (@time * 12); $tests += @neg_time * 12;