lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master ac642ae 1/7: Simplify an assertion


From: Greg Chicares
Subject: [lmi-commits] [lmi] master ac642ae 1/7: Simplify an assertion
Date: Sat, 11 May 2019 13:26:23 -0400 (EDT)

branch: master
commit ac642aed978226b6254555c27c16b0dd012a1da0
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Simplify an assertion
    
    If sns_age equals zero, then the range (p, p + sns_age) is empty.
---
 cso_table.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/cso_table.cpp b/cso_table.cpp
index 37d22cd..aa13356 100644
--- a/cso_table.cpp
+++ b/cso_table.cpp
@@ -964,10 +964,7 @@ std::vector<double> cso_table
         :                          throw "invalid cso omega"
         );
 
-    if(mce_unismoke != smoking)
-        {
-        LMI_ASSERT(each_equal(p, p + sns_age, 0.0));
-        }
+    LMI_ASSERT(each_equal(p, p + sns_age, 0.0));
 
     std::vector<double> v(p + sns_age, p + omega);
 



reply via email to

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