Fixed needless warning in release mode.
This commit is contained in:
parent
7c928f07a3
commit
58a0a9d074
@ -146,7 +146,8 @@ struct BodyLiteralTranslateVisitor
|
|||||||
// TODO: refactor
|
// TODO: refactor
|
||||||
std::experimental::optional<ast::Formula> visit(const Clingo::AST::Comparison &comparison, const Clingo::AST::Literal &literal, Context &context)
|
std::experimental::optional<ast::Formula> visit(const Clingo::AST::Comparison &comparison, const Clingo::AST::Literal &literal, Context &context)
|
||||||
{
|
{
|
||||||
assert(literal.sign == Clingo::AST::Sign::None);
|
if (literal.sign != Clingo::AST::Sign::None)
|
||||||
|
throwErrorAtLocation(literal.location, "negated comparisons in body currently unsupported", context);
|
||||||
|
|
||||||
const auto operator_ = translate(comparison.comparison);
|
const auto operator_ = translate(comparison.comparison);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user