unexpected NV conversion in numeric comparison + overloading #10579
This is a bug report for perl from Niko Tyni <firstname.lastname@example.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.
my $i = 1 << 53;
print ((($f1 == $f2) ? "not " : "") . "ok 1 - equivalence first\n");
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:
Niko Tyni wrote:
This also strongly resembles [perl #46011].
On Thu, Aug 26, 2010 at 12:37:03PM -0700, Niko Tyni wrote:
Now fixed with this commit:
don't upgrade overload IV return values to NV
Affected files ...