diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2018-09-18 16:01:13 -0700 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2018-09-18 18:01:13 -0500 |
commit | f87b7ee8fb224eada44eda07a59e01d113f769df (patch) | |
tree | eecc0655b507b05d821a021367848b71c6eaa18e /src | |
parent | e9d45556f4ca8f370ffbd8383885231fe0e456dc (diff) |
Fix issue with str.idof in evaluator (#2493)
Diffstat (limited to 'src')
-rw-r--r-- | src/theory/evaluator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theory/evaluator.cpp b/src/theory/evaluator.cpp index 4285a65cf..25e20451a 100644 --- a/src/theory/evaluator.cpp +++ b/src/theory/evaluator.cpp @@ -355,7 +355,7 @@ EvalResult Evaluator::evalInternal(TNode n, const String& x = results[currNode[1]].d_str; Integer i = results[currNode[2]].d_rat.getNumerator(); - if (i.strictlyNegative() || i >= s_len) + if (i.strictlyNegative()) { results[currNode] = EvalResult(Rational(-1)); } |