diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-17 19:16:13 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-17 19:16:13 +0000 |
commit | e54dc35bb8a9a01ec402faf8e8793a3a02d6fdf2 (patch) | |
tree | 4118c5b8c4154dab82826f6f90edfd89d53f61f2 /dump.c | |
parent | 3ddc1c2ee1894e9e47198b0d45d953a5a16cfb32 (diff) | |
download | perl-e54dc35bb8a9a01ec402faf8e8793a3a02d6fdf2.tar.gz |
The #6648 wasn't protective enough for limited platforms
(like microperl).
p4raw-id: //depot/perl@6678
Diffstat (limited to 'dump.c')
-rw-r--r-- | dump.c | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -279,12 +279,9 @@ Perl_sv_peek(pTHX_ SV *sv) } } else if (SvNOKp(sv)) { - bool was_local = PL_numeric_local; - if (!was_local) - SET_NUMERIC_STANDARD(); + STORE_NUMERIC_LOCAL_SET_STANDARD(); Perl_sv_catpvf(aTHX_ t, "(%g)",SvNVX(sv)); - if (was_local) - SET_NUMERIC_LOCAL(); + RESTORE_NUMERIC_LOCAL(); } else if (SvIOKp(sv)) { if (SvIsUV(sv)) @@ -932,17 +929,14 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo PerlIO_putc(file, '\n'); } if (type >= SVt_PVNV || type == SVt_NV) { - bool was_local = PL_numeric_local; - if (!was_local) - SET_NUMERIC_STANDARD(); + STORE_NUMERIC_LOCAL_SET_STANDARD(); /* %Vg doesn't work? --jhi */ #ifdef USE_LONG_DOUBLE Perl_dump_indent(aTHX_ level, file, " NV = %.*" PERL_PRIgldbl "\n", LDBL_DIG, SvNVX(sv)); #else Perl_dump_indent(aTHX_ level, file, " NV = %.*g\n", DBL_DIG, SvNVX(sv)); #endif - if (was_local) - SET_NUMERIC_LOCAL(); + RESTORE_NUMERIC_LOCAL(); } if (SvROK(sv)) { Perl_dump_indent(aTHX_ level, file, " RV = 0x%"UVxf"\n", PTR2UV(SvRV(sv))); |