lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master e507882 6/8: Remove a useless assertion


From: Greg Chicares
Subject: [lmi-commits] [lmi] master e507882 6/8: Remove a useless assertion
Date: Tue, 26 Jan 2021 08:12:31 -0500 (EST)

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

    Remove a useless assertion
    
    Given this in 'ihs_avsolve.cpp':
        // No amount solved for can plausibly reach one billion dollars.
        double upper_bound = 999999999.99;
    it is not helpful to assert that a solved-for amount is less than 1e100.
    
    Incidentally dblize()'d this value for posting to the ledger.
---
 ihs_acctval.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ihs_acctval.cpp b/ihs_acctval.cpp
index 8abf703..4465016 100644
--- a/ihs_acctval.cpp
+++ b/ihs_acctval.cpp
@@ -253,8 +253,7 @@ void AccountValue::SetGuarPrem()
         {
         GuarPremium = SolveGuarPremium();
         }
-    LMI_ASSERT(GuarPremium < 1.0e100);
-    ledger_->SetGuarPremium(GuarPremium);
+    ledger_->SetGuarPremium(dblize(GuarPremium));
 }
 
 //============================================================================



reply via email to

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