diff options
author | Karl Williamson <khw@cpan.org> | 2017-08-01 12:38:09 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2017-11-08 20:21:43 -0700 |
commit | 1ae85f6c8d94d4c819717d5024cbdbe30cd7d8f1 (patch) | |
tree | d21a56cdd5433452e2e21927f3e7253308fcf8b0 | |
parent | 1159483a303d3acd96053c88ea1bbf1fd4cf8196 (diff) | |
download | perl-1ae85f6c8d94d4c819717d5024cbdbe30cd7d8f1.tar.gz |
numeric.c: Rename some variables
The new names are clearer.
-rw-r--r-- | numeric.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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(); |