This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Integrate:
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 25 Sep 2003 09:22:04 +0000 (09:22 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 25 Sep 2003 09:22:04 +0000 (09:22 +0000)
[ 21371]
Update to Scalar-List-Utils 1.13

[ 21372]
Sync with libnet 1.17
p4raw-link: @21372 on //depot/perl: 73c20b238d7378e539b3486e16ad5c6e46696374
p4raw-link: @21371 on //depot/perl: aaaf1885c04755b7a5780e4948b19633d0243b0f

p4raw-id: //depot/maint-5.8/perl@21373
p4raw-integrated: from //depot/perl@21368 'copy in'
ext/List/Util/t/sum.t (@11853..) ext/List/Util/ChangeLog
ext/List/Util/lib/List/Util.pm ext/List/Util/lib/Scalar/Util.pm
(@20700..) ext/List/Util/Util.xs (@21354..)

ext/List/Util/ChangeLog
ext/List/Util/Util.xs
ext/List/Util/lib/List/Util.pm
ext/List/Util/lib/Scalar/Util.pm
ext/List/Util/t/sum.t

index ddc3923..61ef188 100644 (file)
@@ -1,3 +1,11 @@
+Change 827 on 2003/09/25 by <gbarr@pobox.com> (Graham Barr)
+
+       Release 1.13
+
+Change 826 on 2003/09/25 by <gbarr@pobox.com> (Graham Barr)
+
+       Fix NV casting issue with some compilers
+
 Change 825 on 2003/08/14 by <gbarr@pobox.com> (Graham Barr)
 
        Release 1.12
index 744d8cd..0e0cfbf 100644 (file)
@@ -49,7 +49,7 @@ my_cxinc(pTHX)
 #ifdef SVf_IVisUV
 #  define slu_sv_value(sv) (SvIOK(sv)) ? (SvIOK_UV(sv)) ? (NV)(SvUVX(sv)) : (NV)(SvIVX(sv)) : (SvNV(sv))
 #else
-#  define slu_sv_value(sv) (SvIOK(sv)) ? (NV)(SvIVX(sv)) : SvNV(sv)
+#  define slu_sv_value(sv) (SvIOK(sv)) ? (NV)(SvIVX(sv)) : (SvNV(sv))
 #endif
 
 #ifndef Drand01
index be59dba..77a52f6 100644 (file)
@@ -10,7 +10,7 @@ require Exporter;
 
 @ISA        = qw(Exporter);
 @EXPORT_OK  = qw(first min max minstr maxstr reduce sum shuffle);
-$VERSION    = "1.12";
+$VERSION    = "1.13";
 $XS_VERSION = $VERSION;
 $VERSION    = eval $VERSION;
 
index 5dc566c..c2aabca 100644 (file)
@@ -11,7 +11,7 @@ require List::Util; # List::Util loads the XS
 
 @ISA       = qw(Exporter);
 @EXPORT_OK = qw(blessed dualvar reftype weaken isweak tainted readonly openhandle refaddr isvstring looks_like_number set_prototype);
-$VERSION   = "1.12";
+$VERSION   = "1.13";
 $VERSION   = eval $VERSION;
 
 sub export_fail {
index 6cd7ea3..f75679d 100755 (executable)
@@ -16,7 +16,7 @@ BEGIN {
 
 use List::Util qw(sum);
 
-print "1..3\n";
+print "1..6\n";
 
 print "not " if defined sum;
 print "ok 1\n";
@@ -27,3 +27,14 @@ print "ok 2\n";
 print "not " unless sum(1,2,3,4) == 10;
 print "ok 3\n";
 
+print "not " unless sum(-1) == -1;
+print "ok 4\n";
+
+my $x = -3;
+
+print "not " unless sum($x,3) == 0;
+print "ok 5\n";
+
+print "not " unless sum(-3.5,3) == -0.5;
+print "ok 6\n";
+