This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6a607b
)
Suggestion by Rick Delaney to make this test pass with -Duse64bitall
author
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Mon, 8 Oct 2007 15:52:37 +0000
(15:52 +0000)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Mon, 8 Oct 2007 15:52:37 +0000
(15:52 +0000)
on HP-UX (see bug #46011)
p4raw-id: //depot/perl@32071
lib/overload.t
patch
|
blob
|
blame
|
history
diff --git
a/lib/overload.t
b/lib/overload.t
index
09809d5
..
29411e1
100644
(file)
--- a/
lib/overload.t
+++ b/
lib/overload.t
@@
-1392,7
+1392,7
@@
foreach my $op (qw(<=> == != < <= > >=)) {
is($o->[0], 1, 'int() numifies only once');
my $aref = [];
- my $num_val =
0 + $aref
;
+ my $num_val =
int($aref)
;
my $r = bless $aref, 'numify_self';
is(int($r), $num_val, 'numifies to self');
is($r->[0], 1, 'int() numifies once when returning self');