From ecb0b1c2c656b70632b46021bcbb0ba4fb71ee2a Mon Sep 17 00:00:00 2001 From: Andrew Reynolds Date: Tue, 26 Mar 2019 10:03:29 -0500 Subject: [PATCH] Fix a few warnings (#2898) --- src/theory/datatypes/datatypes_rewriter.cpp | 3 ++- src/theory/strings/theory_strings.cpp | 1 - 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(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 ){ -- 2.30.2