fix(library/tactic): compilation problem reported by clang++

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-11-21 08:53:37 -08:00
parent f6d1f4db60
commit 367108edfa

View file

@ -65,7 +65,7 @@ std::pair<goal, goal_proof_fn> to_goal(environment const & env, context const &
buffer<std::pair<name, expr>> hypotheses; // normalized names and types of the entries processed so far
buffer<expr> bodies; // normalized bodies of the entries processed so far
std::vector<expr> consts; // cached consts[i] == mk_constant(names[i], hypotheses[i])
auto replace_vars = [&](expr const & e, unsigned offset) {
auto replace_vars = [&](expr const & e, unsigned offset) -> expr {
if (is_var(e)) {
unsigned vidx = var_idx(e);
if (vidx >= offset) {