summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2017-08-01 12:38:09 -0600
committerKarl Williamson <khw@cpan.org>2017-11-08 20:21:43 -0700
commit1ae85f6c8d94d4c819717d5024cbdbe30cd7d8f1 (patch)
treed21a56cdd5433452e2e21927f3e7253308fcf8b0
parent1159483a303d3acd96053c88ea1bbf1fd4cf8196 (diff)
downloadperl-1ae85f6c8d94d4c819717d5024cbdbe30cd7d8f1.tar.gz
numeric.c: Rename some variables
The new names are clearer.
-rw-r--r--numeric.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/numeric.c b/numeric.c
index 7514b748ff..f9c6778469 100644
--- a/numeric.c
+++ b/numeric.c
@@ -1229,9 +1229,11 @@ Perl_my_atof(pTHX_ const char* s)
* that we have to determine this beforehand because on some
* systems, Perl_atof2 is just a wrapper around the system's atof.
* */
- const char * const standard = strchr(s, '.');
- const char * const local = strstr(s, SvPV_nolen(PL_numeric_radix_sv));
- const bool use_standard_radix = standard && (!local || standard < local);
+ const char * const standard_pos = strchr(s, '.');
+ const char * const local_pos
+ = strstr(s, SvPV_nolen(PL_numeric_radix_sv));
+ const bool use_standard_radix
+ = standard_pos && (!local_pos || standard_pos < local_pos);
if (use_standard_radix)
SET_NUMERIC_STANDARD();