diff options
author | Karl Williamson <khw@cpan.org> | 2018-01-17 13:18:50 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-01-30 22:49:03 -0700 |
commit | a1395eaf50e445a5d48b26b960d58275dcffc265 (patch) | |
tree | e561f6c5a933b43f29dbd0280a204e3edc1e6dd8 /numeric.c | |
parent | 12c8ea1ff25065bd849becc3368c606a58fd3514 (diff) | |
download | perl-a1395eaf50e445a5d48b26b960d58275dcffc265.tar.gz |
grok_numeric_radix(): Avoid recalculating
This function just determined that we are in the scope of 'use locale',
hence the underlying radix character should be used. This commit
changes to use the macro that directly does that; previously the macro
that redundantly looks at if we are in the scope was used.
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -523,7 +523,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_SET_TO_NEEDED(); + STORE_LC_NUMERIC_FORCE_TO_UNDERLYING(); if (PL_numeric_radix_sv) { STRLEN len; const char * const radix = SvPV(PL_numeric_radix_sv, len); |