lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] valyuta/005 72f9cc9 2/4: Correct an error identified


From: Greg Chicares
Subject: [lmi-commits] [lmi] valyuta/005 72f9cc9 2/4: Correct an error identified while porting to master
Date: Fri, 29 Jan 2021 17:08:08 -0500 (EST)

branch: valyuta/005
commit 72f9cc9788aeb4475be199f630785ddc27d12731
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Correct an error identified while porting to master
---
 ihs_avmly.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ihs_avmly.cpp b/ihs_avmly.cpp
index 47dbc8b..76de49f 100644
--- a/ihs_avmly.cpp
+++ b/ihs_avmly.cpp
@@ -2190,7 +2190,7 @@ void AccountValue::TxCreditInt()
         SepAcctIntCred = InterestCredited(AVSepAcct, YearsSepAcctIntRate);
         currency gross = InterestCredited(AVSepAcct, YearsSepAcctGrossRate);
         notional_sep_acct_charge = gross - SepAcctIntCred;
-        AVSepAcct += SepAcctIntCred;
+        AVSepAcct = std::max(C0, AVSepAcct + SepAcctIntCred);
         }
     else
         {



reply via email to

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