Fix builtin_test to properly handle last expression in a combining expression

This commit is contained in:
ridiculousfish
2012-03-07 01:13:24 -08:00
parent 6788c2710f
commit 143ead8d00
2 changed files with 6 additions and 1 deletions

View File

@@ -419,7 +419,7 @@ namespace test_expressions {
assert(combiners.size() + 1 == subjects.size());
assert(! subjects.empty());
size_t idx = 0, max = combiners.size();
size_t idx = 0, max = subjects.size();
bool or_result = false;
while (idx < max) {
if (or_result) {