diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-14 09:15:02 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-14 09:15:02 -0700 |
commit | 064aaaa4327f2ea9eb9a52b8ff2b22e168861eb1 (patch) | |
tree | 286dbf2950104988bdd50a2dd6820e9a9109f243 | |
parent | 9fef16ab669a1de62cfc152a700e465dd24dfac5 (diff) | |
download | mu-064aaaa4327f2ea9eb9a52b8ff2b22e168861eb1.tar.gz |
1366
-rw-r--r-- | 022boolean.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/022boolean.cc b/022boolean.cc index e91dc209..9334ed6a 100644 --- a/022boolean.cc +++ b/022boolean.cc @@ -8,7 +8,7 @@ Recipe_number["and"] = AND; case AND: { bool result = true; for (index_t i = 0; i < ingredients.size(); ++i) { - assert(ingredients.at(i).size() == 1); // must be a scalar + assert(ingredients.at(i).size() == 1); // scalar result = result && ingredients.at(i).at(0); } products.resize(1); @@ -56,7 +56,7 @@ Recipe_number["or"] = OR; case OR: { bool result = false; for (index_t i = 0; i < ingredients.size(); ++i) { - assert(ingredients.at(i).size() == 1); // must be a scalar + assert(ingredients.at(i).size() == 1); // scalar result = result || ingredients.at(i).at(0); } products.resize(1); @@ -104,7 +104,7 @@ Recipe_number["not"] = NOT; case NOT: { products.resize(ingredients.size()); for (index_t i = 0; i < ingredients.size(); ++i) { - assert(ingredients.at(i).size() == 1); // must be a scalar + assert(ingredients.at(i).size() == 1); // scalar products.at(i).push_back(!ingredients.at(i).at(0)); } break; |