summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-01-18 15:53:42 -0700
committerKarl Williamson <khw@cpan.org>2018-01-30 22:58:15 -0700
commit7ea85fa8a0c86481b56a2691337b03d30fa29e09 (patch)
treeca4589bba63749f37ed5329bf0615f1e49f39e53 /numeric.c
parent87f8e8e71247d25b271a406fa68b50e91731417f (diff)
downloadperl-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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/numeric.c b/numeric.c
index 494e72eca2..04df0cfa48 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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;