diff options
author | Karl Williamson <khw@cpan.org> | 2018-01-18 15:45:19 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-01-30 22:58:15 -0700 |
commit | 3ca88433b38bb8eb6a3f38406f122a4c8a3018b5 (patch) | |
tree | 9ba32bc149711b27a826727b7ac6f38f65b500bd /numeric.c | |
parent | 7a3934240c41fbfc2d9bd119996fc8740d6a6973 (diff) | |
download | perl-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 'numeric.c')
-rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -524,7 +524,7 @@ Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send) if (IN_LC(LC_NUMERIC)) { DECLARATION_FOR_LC_NUMERIC_MANIPULATION; STORE_LC_NUMERIC_FORCE_TO_UNDERLYING(); - if (PL_numeric_radix_sv) { + { STRLEN len; const char * const radix = SvPV(PL_numeric_radix_sv, len); if (*sp + len <= send && memEQ(*sp, radix, len)) { |