summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTianyi Liang <tianyi-liang@uiowa.edu>2014-02-18 11:22:46 -0600
committerTianyi Liang <tianyi-liang@uiowa.edu>2014-02-18 11:22:46 -0600
commit0aa0a9e616e6d8fc4db19b908b81c2c1a525dcd3 (patch)
tree7cd8114ff42bf7191321716ac4c4abffd4424735 /src
parent4d5387554a084e7da29a170c2851830f5fe55199 (diff)
missed files for the latter commit
Diffstat (limited to 'src')
-rw-r--r--src/theory/strings/theory_strings_rewriter.cpp2
-rw-r--r--src/util/regexp.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/strings/theory_strings_rewriter.cpp b/src/theory/strings/theory_strings_rewriter.cpp
index f0467507d..660b7aafe 100644
--- a/src/theory/strings/theory_strings_rewriter.cpp
+++ b/src/theory/strings/theory_strings_rewriter.cpp
@@ -460,7 +460,7 @@ RewriteResponse TheoryStringsRewriter::postRewrite(TNode node) {
if(node[0][i].isConst()) {
CVC4::String t = node[0][i].getConst<String>();
if(!t.isNumber()) {
- retNode = NodeManager::currentNM()->mkConst(::CVC4::Rational(0));
+ retNode = NodeManager::currentNM()->mkConst(::CVC4::Rational(-1));
break;
}
}
diff --git a/src/util/regexp.h b/src/util/regexp.h
index 4891998e5..4d12803ff 100644
--- a/src/util/regexp.h
+++ b/src/util/regexp.h
@@ -372,7 +372,7 @@ public:
}
return ret;
} else {
- return 0;
+ return -1;
}
}
};/* class String */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback