unexpected NV conversion in numeric comparison + overloading #10579
Comments
From @ntyniThis is a bug report for perl from Niko Tyni <ntyni@debian.org>, As seen in [rt.cpan.org #59478] and http://bugs.debian.org/593764 Test 1 of the following script fails with 64-bit integers and 64-bit While I can see that this may not be a bug at all, consider that Anyway, feel free to close this ticket if it's all working as it should. #!perl package Foo; my $i = 1 << 53; package main; print "1..2\n"; print ((($f1 == $f2) ? "not " : "") . "ok 1 - equivalence first\n"); Flags: Site configuration information for perl 5.13.4: Configured by niko at Thu Aug 26 19:13:41 EEST 2010. Summary of my perl5 (revision 5 version 13 subversion 4) configuration: Locally applied patches: @INC for perl 5.13.4: Environment for perl 5.13.4: |
From zefram@fysh.orgNiko Tyni wrote:
This also strongly resembles [perl #46011]. -zefram |
The RT System itself - Status changed from 'new' to 'open' |
From @iabynOn Thu, Aug 26, 2010 at 12:37:03PM -0700, Niko Tyni wrote:
Now fixed with this commit: commit a42d024 don't upgrade overload IV return values to NV Affected files ... -- |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#77456 (status was 'resolved')
Searchable as RT77456$
The text was updated successfully, but these errors were encountered: