This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
lib/tie-substrhash.t FAILED at test 11
authorRoca, Ignasi <ignasi.roca@fujitsu.siemens.es>
Wed, 17 Jan 2001 15:16:43 +0000 (16:16 +0100)
committerJarkko Hietaniemi <jhi@iki.fi>
Wed, 17 Jan 2001 14:43:17 +0000 (14:43 +0000)
Message-ID: <5930DC161690D2119667009027157547038C8A85@madt009a.siemens.es>

pp_int() was dropping an NV to the floor,
int(279964589018079/59) either returned not an integer
4745162525730.15, or one got "Attempt to free unreferenced scalar."

p4raw-id: //depot/perl@8464

pp.c

diff --git a/pp.c b/pp.c
index 87e459e..d9b0685 100644 (file)
--- a/pp.c
+++ b/pp.c
@@ -2604,6 +2604,7 @@ PP(pp_int)
                  (void)Perl_modf(tmp, &tmp);
                  value = (NV)tmp;
 #endif
+                 SETn(value);
              }
          }
          else {