summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-03-26 10:03:29 -0500
committerGitHub <noreply@github.com>2019-03-26 10:03:29 -0500
commitecb0b1c2c656b70632b46021bcbb0ba4fb71ee2a (patch)
tree80bcb95c1cbb8fd171ac09a92b9149f8fee2dd5f /src
parentad1dd82d553957040b9126a85592e50d2ebbf3a8 (diff)
Fix a few warnings (#2898)
Diffstat (limited to 'src')
-rw-r--r--src/theory/datatypes/datatypes_rewriter.cpp3
-rw-r--r--src/theory/strings/theory_strings.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/theory/datatypes/datatypes_rewriter.cpp b/src/theory/datatypes/datatypes_rewriter.cpp
index 507bbfdd1..ae21a0a60 100644
--- a/src/theory/datatypes/datatypes_rewriter.cpp
+++ b/src/theory/datatypes/datatypes_rewriter.cpp
@@ -364,7 +364,8 @@ RewriteResponse DatatypesRewriter::rewriteSelector(TNode in)
// APPLY_SELECTOR) is given by an attribute and obtained via indexOf below
// The argument is only valid if it is the proper constructor.
selectorIndex = Datatype::indexOf(selector);
- if (selectorIndex < 0 || selectorIndex >= c.getNumArgs())
+ if (selectorIndex < 0
+ || selectorIndex >= static_cast<int>(c.getNumArgs()))
{
selectorIndex = -1;
}
diff --git a/src/theory/strings/theory_strings.cpp b/src/theory/strings/theory_strings.cpp
index 4e939e47b..0017ced5c 100644
--- a/src/theory/strings/theory_strings.cpp
+++ b/src/theory/strings/theory_strings.cpp
@@ -1626,7 +1626,6 @@ void TheoryStrings::checkExtfEval( int effort ) {
einfo.d_exp.insert(einfo.d_exp.end(), exp[i].begin(), exp[i].end());
// inference is rewriting the substituted node
Node nrc = Rewriter::rewrite( sn );
- Kind nrck = nrc.getKind();
//if rewrites to a constant, then do the inference and mark as reduced
if( nrc.isConst() ){
if( effort<3 ){
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback