summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-01-18 15:56:33 -0700
committerKarl Williamson <khw@cpan.org>2018-01-30 22:58:15 -0700
commitdd2dbc5faf48a2985eee15f6f61fd81baec39198 (patch)
tree9189ed68c0aef2e623e528977a4a305d2137f5e5 /sv.c
parent7ea85fa8a0c86481b56a2691337b03d30fa29e09 (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index b0ae32328e..771765342d 100644
--- a/sv.c
+++ b/sv.c
@@ -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);