lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master d9655b77 01/11: Refactor: rename local variab


From: Greg Chicares
Subject: [lmi-commits] [lmi] master d9655b77 01/11: Refactor: rename local variables
Date: Tue, 31 May 2022 17:52:05 -0400 (EDT)

branch: master
commit d9655b775ef33ce69f0a7754aff04b837c25d566
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Refactor: rename local variables
    
    Committed this refactoring part separately, to make the next commit
    clearer.
---
 bin_exp_test.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/bin_exp_test.cpp b/bin_exp_test.cpp
index 13c8a32d..b82064c7 100644
--- a/bin_exp_test.cpp
+++ b/bin_exp_test.cpp
@@ -265,29 +265,29 @@ void test_quodlibet()
     LMI_TEST_EQUAL(1748.2195908183271, bin_exp(12.04662322998046875, 3));
 
     // Comparison to std::pow() and nonstd::power().
-    double a0 = std::pow
+    double a1 = std::pow
         (static_cast<double>(std::numeric_limits<double>::radix)
         ,static_cast<double>(std::numeric_limits<double>::digits)
         );
-    double a1 = nonstd::power
+    double a2 = nonstd::power
         (static_cast<double>(std::numeric_limits<double>::radix)
         ,                    std::numeric_limits<double>::digits
         );
     // This compiles, but its behavior is undefined unless an int
     // is at least 54 bits (53, + 1 for sign). Otherwise it cannot
     // return the hoped-for answer, and may return zero.
-    auto a2 = nonstd::power
+    auto a3 = nonstd::power
         (                    std::numeric_limits<double>::radix
         ,                    std::numeric_limits<double>::digits
         );
-    auto a3 = nonstd::power
+    auto a4 = nonstd::power
         (static_cast<long int>(std::numeric_limits<double>::radix)
         ,static_cast<long int>(std::numeric_limits<double>::digits)
         );
-    LMI_TEST_EQUAL(9007199254740992, a0);
     LMI_TEST_EQUAL(9007199254740992, a1);
-    stifle_unused_warning(a2);
+    LMI_TEST_EQUAL(9007199254740992, a2);
     stifle_unused_warning(a3);
+    stifle_unused_warning(a4);
 }
 
 void mete0()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]