Skip to content

Commit

Permalink
numeric.c, intrpvar.h: Rmv outdated condition, comment
Browse files Browse the repository at this point in the history
It hasn't been true for some releases that the SV was removed when the
radix was a dot.  Instead the SV contains the correct decimal point
character at all times.
  • Loading branch information
khwilliamson committed Apr 29, 2021
1 parent 191d688 commit 1193618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion intrpvar.h
Expand Up @@ -806,7 +806,7 @@ PERLVARI(I, numeric_standard, int, TRUE)
/* Name of current numeric locale */
PERLVARI(I, numeric_name, const char *, NULL)

PERLVAR(I, numeric_radix_sv, SV *) /* The radix separator if not '.' */
PERLVAR(I, numeric_radix_sv, SV *) /* The radix separator */

#ifdef USE_LOCALE_CTYPE

Expand Down
2 changes: 1 addition & 1 deletion numeric.c
Expand Up @@ -1490,7 +1490,7 @@ N.B. C<s> must be NUL terminated.
{
DECLARATION_FOR_LC_NUMERIC_MANIPULATION;
STORE_LC_NUMERIC_SET_TO_NEEDED();
if (! (PL_numeric_radix_sv && IN_LC(LC_NUMERIC))) {
if (! IN_LC(LC_NUMERIC)) {
ATOF(s,x);
}
else {
Expand Down

0 comments on commit 1193618

Please sign in to comment.