summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-01-18 15:45:19 -0700
committerKarl Williamson <khw@cpan.org>2018-01-30 22:58:15 -0700
commit3ca88433b38bb8eb6a3f38406f122a4c8a3018b5 (patch)
tree9ba32bc149711b27a826727b7ac6f38f65b500bd /sv.c
parent7a3934240c41fbfc2d9bd119996fc8740d6a6973 (diff)
downloadperl-3ca88433b38bb8eb6a3f38406f122a4c8a3018b5.tar.gz
Keep PL_numeric_radix_sv always set
Previously this was removed if the radix was dot. By keeping it set to a dot, we simplify some code, removing some branches.
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sv.c b/sv.c
index bd655d0d03..b0ae32328e 100644
--- a/sv.c
+++ b/sv.c
@@ -11713,7 +11713,7 @@ S_format_hexfp(pTHX_ char * const buf, const STRLEN bufsize, const char c,
#ifndef USE_LOCALE_NUMERIC
*p++ = '.';
#else
- if (PL_numeric_radix_sv && IN_LC(LC_NUMERIC)) {
+ if (IN_LC(LC_NUMERIC)) {
STRLEN n;
const char* r = SvPV(PL_numeric_radix_sv, n);
Copy(r, p, n, char);
@@ -12905,7 +12905,7 @@ Perl_sv_vcatpvfn_flags(pTHX_ SV *const sv, const char *const pat, const STRLEN p
lc_numeric_set = TRUE;
}
- if (PL_numeric_radix_sv && IN_LC(LC_NUMERIC)) {
+ if (IN_LC(LC_NUMERIC)) {
/* this can't wrap unless PL_numeric_radix_sv is a string
* consuming virtually all the 32-bit or 64-bit address
* space