[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);
- [lmi-commits] [lmi] master updated (30f5cff -> fe191f3), Greg Chicares, 2019/05/11
- [lmi-commits] [lmi] master 49d083a 5/7: Upgrade to gcc-8.x, Greg Chicares, 2019/05/11
- [lmi-commits] [lmi] master 09d67a8 4/7: Calculate 7PP and CVAT corridor from first principles, Greg Chicares, 2019/05/11
- [lmi-commits] [lmi] master fe191f3 7/7: Fully reflect earlier eradication of cygwin "MinGW_" mount, Greg Chicares, 2019/05/11
- [lmi-commits] [lmi] master bc0c833 6/7: Install bsdtar in chroot, Greg Chicares, 2019/05/11
- [lmi-commits] [lmi] master 7566ae5 3/7: Prefer overloading to "magical" default argument values, Greg Chicares, 2019/05/11
- [lmi-commits] [lmi] master 19c01d9 2/7: Add minimum- and maximum-age arguments to cso_table(), Greg Chicares, 2019/05/11
- [lmi-commits] [lmi] master ac642ae 1/7: Simplify an assertion,
Greg Chicares <=