This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
numeric.c: Rename some variables
authorKarl Williamson <khw@cpan.org>
Tue, 1 Aug 2017 18:38:09 +0000 (12:38 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 9 Nov 2017 03:21:43 +0000 (20:21 -0700)
The new names are clearer.

numeric.c

index 7514b74..f9c6778 100644 (file)
--- 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();