lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [6181] Remove a latent defect


From: Greg Chicares
Subject: [lmi-commits] [6181] Remove a latent defect
Date: Sat, 02 May 2015 00:42:52 +0000

Revision: 6181
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6181
Author:   chicares
Date:     2015-05-02 00:42:51 +0000 (Sat, 02 May 2015)
Log Message:
-----------
Remove a latent defect

Modified Paths:
--------------
    lmi/trunk/ihs_avmly.cpp

Modified: lmi/trunk/ihs_avmly.cpp
===================================================================
--- lmi/trunk/ihs_avmly.cpp     2015-05-02 00:36:25 UTC (rev 6180)
+++ lmi/trunk/ihs_avmly.cpp     2015-05-02 00:42:51 UTC (rev 6181)
@@ -2238,7 +2238,12 @@
 
 void AccountValue::TxLoanInt()
 {
-    // Nothing to do if there's no loan outstanding.
+    // Reinitialize to zero before potential early exit, to sweep away
+    // any leftover values (e.g., after a loan has been paid off).
+    RegLnIntCred = 0.0;
+    PrfLnIntCred = 0.0;
+
+    // Nothing more to do if there's no loan outstanding.
     if(0.0 == RegLnBal && 0.0 == PrfLnBal)
         {
         return;




reply via email to

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