This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Further adjustement to change #27576 by Jan Dubois
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 23 Mar 2006 10:01:48 +0000 (10:01 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 23 Mar 2006 10:01:48 +0000 (10:01 +0000)
(this change being blead-specific, while #27576 is
integrable to maint)
p4raw-link: @27576 on //depot/perl: cab190d4d715e2c6ec26ee0ebfd0bc6fb0f03bd3

p4raw-id: //depot/perl@27577

sv.c

diff --git a/sv.c b/sv.c
index d8b4d74..2c8f174 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -1899,8 +1899,8 @@ S_sv_2iuv_common(pTHX_ SV *sv) {
        if (Perl_isnan(SvNVX(sv))) {
            SvUV_set(sv, 0);
            SvIsUV_on(sv);
+           return FALSE;
        }
-       else
 #endif
        if (SvNVX(sv) < (NV)IV_MAX + 0.5) {
            SvIV_set(sv, I_V(SvNVX(sv)));