diff options
author | Karl Williamson <khw@cpan.org> | 2018-01-18 15:53:42 -0700 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2018-01-30 22:58:15 -0700 |
commit | 7ea85fa8a0c86481b56a2691337b03d30fa29e09 (patch) | |
tree | ca4589bba63749f37ed5329bf0615f1e49f39e53 /numeric.c | |
parent | 87f8e8e71247d25b271a406fa68b50e91731417f (diff) | |
download | perl-7ea85fa8a0c86481b56a2691337b03d30fa29e09.tar.gz |
numeric.c: Remove duplicate PERL_ARGS_ASSERT
By moving the call to one instance of this macro, the other can be
removed.
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -518,9 +518,10 @@ Scan and skip for a numeric decimal separator (radix). bool Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send) { -#ifdef USE_LOCALE_NUMERIC PERL_ARGS_ASSERT_GROK_NUMERIC_RADIX; +#ifdef USE_LOCALE_NUMERIC + if (IN_LC(LC_NUMERIC)) { DECLARATION_FOR_LC_NUMERIC_MANIPULATION; STORE_LC_NUMERIC_FORCE_TO_UNDERLYING(); @@ -539,8 +540,6 @@ Perl_grok_numeric_radix(pTHX_ const char **sp, const char *send) * we may have data from different locales mixed */ #endif - PERL_ARGS_ASSERT_GROK_NUMERIC_RADIX; - if (*sp < send && **sp == '.') { ++*sp; return TRUE; |