lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [4997] Refactor, indigitating a defect


From: Greg Chicares
Subject: [lmi-commits] [4997] Refactor, indigitating a defect
Date: Mon, 21 Jun 2010 14:28:35 +0000

Revision: 4997
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=4997
Author:   chicares
Date:     2010-06-21 14:28:34 +0000 (Mon, 21 Jun 2010)
Log Message:
-----------
Refactor, indigitating a defect

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

Modified: lmi/trunk/ihs_acctval.cpp
===================================================================
--- lmi/trunk/ihs_acctval.cpp   2010-06-21 14:03:15 UTC (rev 4996)
+++ lmi/trunk/ihs_acctval.cpp   2010-06-21 14:28:34 UTC (rev 4997)
@@ -515,7 +515,6 @@
         }
     std::vector<double> pmts_7702a;
     std::vector<double> bfts_7702a;
-    int length_7702a = std::min(7, BasicValues::GetLength());
     if(0 == InforceYear && 0 == InforceMonth)
         {
         // No need to initialize 'pmts_7702a' in this case.
@@ -527,6 +526,7 @@
         }
     else
         {
+        int length_7702a = std::min(7, BasicValues::GetLength());
         // Premium history starts at contract year zero.
         nonstd::copy_n
             (yare_input_.PremiumHistory.begin()
@@ -534,8 +534,9 @@
             ,std::back_inserter(pmts_7702a)
             );
         // Specamt history starts at policy year zero.
+        int const offset = yare_input_.InforceContractYear; // Incorrect.
         nonstd::copy_n
-            (yare_input_.SpecamtHistory.begin() + 
yare_input_.InforceContractYear
+            (yare_input_.SpecamtHistory.begin() + offset
             ,length_7702a
             ,std::back_inserter(bfts_7702a)
             );




reply via email to

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