lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/002 fb82290 63/65: Use maximal 64-bit rather


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/002 fb82290 63/65: Use maximal 64-bit rather than 32-bit integer value
Date: Wed, 16 Sep 2020 16:55:23 -0400 (EDT)

branch: valyuta/002
commit fb82290f61e7ec5d77d943f2df43d1fc3c5b79a6
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Use maximal 64-bit rather than 32-bit integer value
    
    'master' has the lowest normalized 'double' value. Changing that to
    the lowest 32-bit integer value caused that value to be the minimum
    possible AV, and it wasn't low enough for some solves.
---
 ihs_acctval.cpp | 2 +-
 ihs_avmly.cpp   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index e4d3a3d..fc92a37 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -617,7 +617,7 @@ void AccountValue::SetInitialValues()
     // negative number that can be negated without the sort of
     // surprising result seen with INT_MIN, which is -2147483648.
     // Why that intention makes sense is another matter.
-    HoneymoonValue              = currency(-2147483647);
+    HoneymoonValue              = currency(-9223372036854775807);
     if(mce_gen_curr == GenBasis_)
         {
         HoneymoonActive = yare_input_.HoneymoonEndorsement;
diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index b822e5f..fe8c0c5 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -2063,7 +2063,7 @@ void AccountValue::TxTestHoneymoonForExpiration()
         // negative number that can be negated without the sort of
         // surprising result seen with INT_MIN, which is -2147483648.
         // Why that intention makes sense is another matter.
-        HoneymoonValue  = currency(-2147483647);
+        HoneymoonValue  = currency(-9223372036854775807);
         }
 }
 



reply via email to

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