lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master 168e9a70 03/10: Specify a constant more clear


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 168e9a70 03/10: Specify a constant more clearly
Date: Mon, 20 Jun 2022 19:16:19 -0400 (EDT)

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

    Specify a constant more clearly
    
    Not everyone has memorized the decimal value of 2^63. With decimal
    notation, a "ULL" suffix was required; hexadecimal notation never
    requires any suffix.
---
 math_functions_test.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/math_functions_test.cpp b/math_functions_test.cpp
index 268e4250..f9b78fa3 100644
--- a/math_functions_test.cpp
+++ b/math_functions_test.cpp
@@ -583,7 +583,7 @@ void test_signum(char const* file, int line)
 
 void test_u_abs()
 {
-    LMI_TEST_EQUAL(9223372036854775808ULL, u_abs(INT64_MIN));
+    LMI_TEST_EQUAL(0x8000000000000000, u_abs(INT64_MIN));
 
     constexpr auto int8_min {std::numeric_limits<std::int8_t>::min()};
     constexpr auto int8_max {std::numeric_limits<std::int8_t>::max()};



reply via email to

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