This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
don't upgrade overload IV return values to NV
authorDavid Mitchell <davem@iabyn.com>
Wed, 15 Dec 2010 19:38:17 +0000 (19:38 +0000)
committerDavid Mitchell <davem@iabyn.com>
Wed, 15 Dec 2010 19:41:46 +0000 (19:41 +0000)
commita42d02426c51c2ef1bdefac84284a828de703cda
treeff6b50dda007214dc0ed829f064c3db7723071c7
parentc2f8ff19c9ed44116de94b8779bfd09751377cd8
don't upgrade overload IV return values to NV

(if we can avoid it).

Fix for RT #77456. Basically it extends the usage of the AMGf_numeric flag
to the remaining overloadable numeric ops that behave differently with IV
and NV.
lib/overload64.t
pp.c
pp_hot.c