diff options
author | Karl Williamson <khw@cpan.org> | 2018-01-18 15:56:33 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-01-30 22:58:15 -0700 |
commit | dd2dbc5faf48a2985eee15f6f61fd81baec39198 (patch) | |
tree | 9189ed68c0aef2e623e528977a4a305d2137f5e5 /sv.c | |
parent | 7ea85fa8a0c86481b56a2691337b03d30fa29e09 (diff) | |
download | perl-dd2dbc5faf48a2985eee15f6f61fd81baec39198.tar.gz |
Perl_sv_2pv_flags: Potentially avoid work
By using a macro that is private to the core, this code can avoid
thinking it has to deal with a non-dot radix character, as even if we
are using the locale radix, that is often a dot.
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3143,7 +3143,7 @@ Perl_sv_2pv_flags(pTHX_ SV *const sv, STRLEN *const lp, const I32 flags) DECLARATION_FOR_LC_NUMERIC_MANIPULATION; STORE_LC_NUMERIC_SET_TO_NEEDED(); - local_radix = PL_numeric_underlying && PL_numeric_radix_sv; + local_radix = _NOT_IN_NUMERIC_STANDARD; if (local_radix && SvCUR(PL_numeric_radix_sv) > 1) { size += SvCUR(PL_numeric_radix_sv) - 1; s = SvGROW_mutable(sv, size); |